fix: Change num_code column from int to varchar (#7463)
This commit is contained in:
@@ -17,7 +17,7 @@ export interface BaseRegionCountry {
|
||||
id: string
|
||||
iso_2?: string
|
||||
iso_3?: string
|
||||
num_code?: number
|
||||
num_code?: string
|
||||
name?: string
|
||||
display_name?: string
|
||||
}
|
||||
@@ -37,7 +37,7 @@ export interface BaseRegionCountryFilters
|
||||
id?: string[] | string
|
||||
iso_2?: string[] | string
|
||||
iso_3?: string[] | string
|
||||
num_code?: number[] | string
|
||||
num_code?: string | string[]
|
||||
name?: string[] | string
|
||||
display_name?: string[] | string
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ export interface RegionCountryDTO {
|
||||
/**
|
||||
* The country's code number.
|
||||
*/
|
||||
num_code: number
|
||||
num_code: string
|
||||
|
||||
/**
|
||||
* The name of the country.
|
||||
@@ -147,7 +147,7 @@ export interface FilterableRegionCountryProps
|
||||
/**
|
||||
* Filter countries by their code number.
|
||||
*/
|
||||
num_code?: number[] | string
|
||||
num_code?: string[] | string
|
||||
|
||||
/**
|
||||
* Filter countries by their name.
|
||||
|
||||
@@ -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