fix: Change num_code column from int to varchar (#7463)
This commit is contained in:
@@ -131,12 +131,12 @@
|
||||
},
|
||||
"num_code": {
|
||||
"name": "num_code",
|
||||
"type": "int",
|
||||
"type": "text",
|
||||
"unsigned": false,
|
||||
"autoincrement": false,
|
||||
"primary": false,
|
||||
"nullable": false,
|
||||
"mappedType": "integer"
|
||||
"mappedType": "text"
|
||||
},
|
||||
"name": {
|
||||
"name": "name",
|
||||
|
||||
@@ -29,7 +29,7 @@ CREATE INDEX IF NOT EXISTS "IDX_region_deleted_at" ON "region" ("deleted_at") WH
|
||||
CREATE TABLE IF NOT EXISTS "region_country" (
|
||||
"iso_2" text NOT NULL,
|
||||
"iso_3" text NOT NULL,
|
||||
"num_code" int NOT NULL,
|
||||
"num_code" text NOT NULL,
|
||||
"name" text NOT NULL,
|
||||
"display_name" text NOT NULL,
|
||||
"region_id" text NULL,
|
||||
|
||||
@@ -22,8 +22,8 @@ export default class Country {
|
||||
@Property({ columnType: "text" })
|
||||
iso_3: string
|
||||
|
||||
@Property({ columnType: "int" })
|
||||
num_code: number
|
||||
@Property({ columnType: "text" })
|
||||
num_code: string
|
||||
|
||||
@Property({ columnType: "text" })
|
||||
name: string
|
||||
|
||||
Reference in New Issue
Block a user