mirror of
https://github.com/docmost/docmost.git
synced 2026-05-16 22:41:30 +08:00
more work on attachments
* fix frontend env usage
This commit is contained in:
@@ -10,7 +10,7 @@ export async function up(db: Kysely<any>): Promise<void> {
|
||||
.addColumn('name', 'varchar', (col) => col)
|
||||
.addColumn('description', 'text', (col) => col)
|
||||
.addColumn('slug', 'varchar', (col) => col)
|
||||
.addColumn('icon', 'varchar', (col) => col)
|
||||
.addColumn('logo', 'varchar', (col) => col)
|
||||
.addColumn('visibility', 'varchar', (col) =>
|
||||
col.defaultTo(SpaceVisibility.OPEN).notNull(),
|
||||
)
|
||||
|
||||
@@ -15,9 +15,11 @@ export async function up(db: Kysely<any>): Promise<void> {
|
||||
.addColumn('creator_id', 'uuid', (col) =>
|
||||
col.references('users.id').notNull(),
|
||||
)
|
||||
.addColumn('page_id', 'uuid', (col) => col.references('pages.id'))
|
||||
.addColumn('space_id', 'uuid', (col) => col.references('spaces.id'))
|
||||
.addColumn('workspace_id', 'uuid', (col) => col.references('workspaces.id'))
|
||||
.addColumn('page_id', 'uuid', (col) => col)
|
||||
.addColumn('space_id', 'uuid', (col) => col)
|
||||
.addColumn('workspace_id', 'uuid', (col) =>
|
||||
col.references('workspaces.id').onDelete('cascade').notNull(),
|
||||
)
|
||||
.addColumn('created_at', 'timestamptz', (col) =>
|
||||
col.notNull().defaultTo(sql`now()`),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user