diff --git a/bin/Commands/ExportSqlServer.php b/bin/Commands/ExportSqlServer.php index 1408bc2c9..8a5279f17 100644 --- a/bin/Commands/ExportSqlServer.php +++ b/bin/Commands/ExportSqlServer.php @@ -101,6 +101,7 @@ private function generateTableSchema(string $table): string name NVARCHAR(255) NOT NULL, country_id INT NOT NULL, country_code NCHAR(2) NOT NULL, + country_name NVARCHAR(255) NOT NULL, fips_code NVARCHAR(255) NULL, iso2 NVARCHAR(255) NULL, iso3166_2 NVARCHAR(10) NULL, @@ -126,8 +127,10 @@ private function generateTableSchema(string $table): string name NVARCHAR(255) NOT NULL, state_id INT NOT NULL, state_code NVARCHAR(255) NOT NULL, + state_name NVARCHAR(255) NOT NULL, country_id INT NOT NULL, country_code NCHAR(2) NOT NULL, + country_name NVARCHAR(255) NOT NULL, type NVARCHAR(191) NULL, level INT NULL, parent_id INT NULL, diff --git a/bin/db/schema.sql b/bin/db/schema.sql index 2ca7b0fef..66d70fc19 100644 --- a/bin/db/schema.sql +++ b/bin/db/schema.sql @@ -19,11 +19,11 @@ DROP TABLE IF EXISTS `countries`; DROP TABLE IF EXISTS `subregions`; DROP TABLE IF EXISTS `regions`; --- MySQL dump 10.13 Distrib 8.0.44, for Linux (x86_64) +-- MySQL dump 10.13 Distrib 8.0.45, for Linux (x86_64) -- -- Host: localhost Database: world -- ------------------------------------------------------ --- Server version 8.0.44-0ubuntu0.24.04.2 +-- Server version 8.0.45-0ubuntu0.24.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; @@ -198,6 +198,6 @@ CREATE TABLE `cities` ( /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2026-01-11 19:44:09 +-- Dump completed on 2026-02-28 8:38:58 SET FOREIGN_KEY_CHECKS=1;