Skip to content

Commit 80062b5

Browse files
author
Laurie T. Malau
committed
m
1 parent b47b79b commit 80062b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/gitpod-db/src/typeorm/migration/1668531007092-CreatePersonalAccessTokenTable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class CreatePersonalAccessTokenTable1668531007092 implements MigrationInt
1111
public async up(queryRunner: QueryRunner): Promise<void> {
1212
if (!(await tableExists(queryRunner, "d_b_personal_access_token"))) {
1313
await queryRunner.query(
14-
"CREATE TABLE IF NOT EXISTS `d_b_personal_access_token` (`id` varchar(255) NOT NULL, `userId` varchar(255) NOT NULL, `hash` varchar(255) NOT NULL, `name` varchar(255) NOT NULL, `description` text DEFAULT NULL, `scopes` text NOT NULL, `expirationTime` timestamp(6) NOT NULL, `createdAt` timestamp(6) NOT NULL, `_lastModified` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), `deleted` tinyint(4) NOT NULL DEFAULT '0', PRIMARY KEY (id))",
14+
"CREATE TABLE IF NOT EXISTS `d_b_personal_access_token` (`id` varchar(255) NOT NULL, `userId` varchar(255) NOT NULL, `hash` varchar(255) NOT NULL, `name` varchar(255) NOT NULL, `description` text DEFAULT NULL, `scopes` text NOT NULL, `expirationTime` timestamp(6) NOT NULL, `createdAt` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), `_lastModified` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), `deleted` tinyint(4) NOT NULL DEFAULT '0', PRIMARY KEY (id))",
1515
);
1616
await queryRunner.query("CREATE INDEX `ind_userId` ON `d_b_personal_access_token` (userId)");
1717
await queryRunner.query("CREATE INDEX `ind_hash` ON `d_b_apersonal_access_token` (hash)");

0 commit comments

Comments
 (0)