1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-02 12:47:41 +02:00
joplin/packages/server/src/migrations/20210621185454_share_permissions.ts

14 lines
372 B
TypeScript

import { Knex } from 'knex';
import { DbConnection } from '../db';
export const up = async (db: DbConnection) => {
await db.schema.alterTable('users', (table: Knex.CreateTableBuilder) => {
table.renameColumn('can_share', 'can_share_folder');
table.integer('can_share_note').defaultTo(1).notNullable();
});
};
export const down = async (_db: DbConnection) => {
};