WIP: Split up moon counter from the database #489
3 changed files with 4 additions and 4 deletions
|
@ -4,8 +4,5 @@ CREATE TABLE `user_setting` (
|
||||||
`WhenUpdated` datetime NOT NULL,
|
`WhenUpdated` datetime NOT NULL,
|
||||||
`UserId` varchar(255) NOT NULL,
|
`UserId` varchar(255) NOT NULL,
|
||||||
`Key` varchar(255) NOT NULL,
|
`Key` varchar(255) NOT NULL,
|
||||||
`Value` varchar(255) NOT NULL,
|
`Value` varchar(255) NOT NULL
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
||||||
|
|
||||||
ALTER TABLE `user_setting`
|
|
||||||
ADD PRIMARY KEY (`Id`);
|
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
ALTER TABLE user_setting
|
||||||
|
ADD PRIMARY KEY (Id);
|
|
@ -6,6 +6,7 @@ export class CreateUserSetting1727286976268 implements MigrationInterface {
|
||||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||||
MigrationHelper.Up('1727286976268-CreateUserSetting', '3.3.0', [
|
MigrationHelper.Up('1727286976268-CreateUserSetting', '3.3.0', [
|
||||||
"01-UserSetting",
|
"01-UserSetting",
|
||||||
|
"02-UserSettingKey",
|
||||||
], queryRunner);
|
], queryRunner);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue