-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: make completion fragments user-specific
- Loading branch information
Showing
5 changed files
with
31 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { MigrationInterface, QueryRunner, TableColumn } from 'typeorm'; | ||
|
||
import { TABLE_FRAGMENT } from 'src/entity/Fragment'; | ||
|
||
const COLUMN_USER = new TableColumn({ | ||
name: 'userId', | ||
type: 'varchar', | ||
}); | ||
|
||
export class FragmentUser0001546283532 implements MigrationInterface { | ||
public async up(query: QueryRunner): Promise<void> { | ||
await query.clearTable(TABLE_FRAGMENT); | ||
await query.addColumn(TABLE_FRAGMENT, COLUMN_USER); | ||
} | ||
|
||
public async down(query: QueryRunner): Promise<void> { | ||
await query.dropColumn(TABLE_FRAGMENT, COLUMN_USER); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters