Added front page, moved shelf navigation to header.
This commit is contained in:
@@ -76,6 +76,24 @@ export async function up(knex) {
|
||||
table.boolean('is_nsfw');
|
||||
});
|
||||
|
||||
await knex.schema.createTable('shelves_subscriptions', (table) => {
|
||||
table.increments('id');
|
||||
|
||||
table.integer('shelf_id')
|
||||
.references('id')
|
||||
.inTable('shelves');
|
||||
|
||||
table.integer('user_id')
|
||||
.references('id')
|
||||
.inTable('users');
|
||||
|
||||
table.unique(['shelf_id', 'user_id']);
|
||||
|
||||
table.datetime('created_at')
|
||||
.notNullable()
|
||||
.defaultTo(knex.fn.now());
|
||||
});
|
||||
|
||||
await knex.schema.createTable('posts', (table) => {
|
||||
table.text('id', 8)
|
||||
.primary()
|
||||
|
||||
Reference in New Issue
Block a user