fix: Change num_code column from int to varchar (#7463)
This commit is contained in:
1 parent
b8bc3ed16f
commit
ebc4215f16
5 files changed
+9
-9
No files matched your search
@@ -17,7 +17,7 @@ export interface BaseRegionCountry {
|
|||||||
id: string
|
id: string
|
||||||
iso_2?: string
|
iso_2?: string
|
||||||
iso_3?: string
|
iso_3?: string
|
||||||
num_code?: number
|
num_code?: string
|
||||||
name?: string
|
name?: string
|
||||||
display_name?: string
|
display_name?: string
|
||||||
}
|
}
|
||||||
@@ -37,7 +37,7 @@ export interface BaseRegionCountryFilters
|
|||||||
id?: string[] | string
|
id?: string[] | string
|
||||||
iso_2?: string[] | string
|
iso_2?: string[] | string
|
||||||
iso_3?: string[] | string
|
iso_3?: string[] | string
|
||||||
num_code?: number[] | string
|
num_code?: string | string[]
|
||||||
name?: string[] | string
|
name?: string[] | string
|
||||||
display_name?: string[] | string
|
display_name?: string[] | string
|
||||||
}
|
}
|
||||||
@@ -72,7 +72,7 @@ export interface RegionCountryDTO {
|
|||||||
/**
|
/**
|
||||||
* The country's code number.
|
* The country's code number.
|
||||||
*/
|
*/
|
||||||
num_code: number
|
num_code: string
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The name of the country.
|
* The name of the country.
|
||||||
@@ -147,7 +147,7 @@ export interface FilterableRegionCountryProps
|
|||||||
/**
|
/**
|
||||||
* Filter countries by their code number.
|
* Filter countries by their code number.
|
||||||
*/
|
*/
|
||||||
num_code?: number[] | string
|
num_code?: string[] | string
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filter countries by their name.
|
* Filter countries by their name.
|
||||||
|
|||||||
@@ -131,12 +131,12 @@
|
|||||||
},
|
},
|
||||||
"num_code": {
|
"num_code": {
|
||||||
"name": "num_code",
|
"name": "num_code",
|
||||||
"type": "int",
|
"type": "text",
|
||||||
"unsigned": false,
|
"unsigned": false,
|
||||||
"autoincrement": false,
|
"autoincrement": false,
|
||||||
"primary": false,
|
"primary": false,
|
||||||
"nullable": false,
|
"nullable": false,
|
||||||
"mappedType": "integer"
|
"mappedType": "text"
|
||||||
},
|
},
|
||||||
"name": {
|
"name": {
|
||||||
"name": "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" (
|
CREATE TABLE IF NOT EXISTS "region_country" (
|
||||||
"iso_2" text NOT NULL,
|
"iso_2" text NOT NULL,
|
||||||
"iso_3" text NOT NULL,
|
"iso_3" text NOT NULL,
|
||||||
"num_code" int NOT NULL,
|
"num_code" text NOT NULL,
|
||||||
"name" text NOT NULL,
|
"name" text NOT NULL,
|
||||||
"display_name" text NOT NULL,
|
"display_name" text NOT NULL,
|
||||||
"region_id" text NULL,
|
"region_id" text NULL,
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ export default class Country {
|
|||||||
@Property({ columnType: "text" })
|
@Property({ columnType: "text" })
|
||||||
iso_3: string
|
iso_3: string
|
||||||
|
|
||||||
@Property({ columnType: "int" })
|
@Property({ columnType: "text" })
|
||||||
num_code: number
|
num_code: string
|
||||||
|
|
||||||
@Property({ columnType: "text" })
|
@Property({ columnType: "text" })
|
||||||
name: string
|
name: string
|
||||||
|
|||||||
Reference in new issue
Block a user