This commit is contained in:
iVampireSP.com 2023-10-24 14:27:39 +08:00
parent 3f28963e1e
commit c71484419f
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -0,0 +1,28 @@
import {MigrationInterface, QueryRunner, Table, TableIndex} from "typeorm"
export class CreateUsersTable1698126666203 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.createTable(
new Table({
name: "users",
columns: [
{
name: "id",
type: "unsignedint",
isPrimary: true,
}
]
})
)
// await queryRunner.createIndex("users", new TableIndex({
// columnNames: [""],
// name: "IDX_USER_FIRST_NAME"
// })
}
public async down(queryRunner: QueryRunner): Promise<void> {
}
}