π The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.
Vue dockergolangkanbanknowledge-baseknowledge-managementmarkdownnote-takingnotesnotes-appnotionnuxtnuxtjsoffline-firstoidcpwaselfhostedssovuevuejswiki
Fix migration init
Smaug673906881ab1fc55
diff --git a/backend/migrations/000001_init.up.sql b/backend/migrations/000001_init.up.sqlindex b85c4f6f..7d53de1b 100644--- a/backend/migrations/000001_init.up.sql+++ b/backend/migrations/000001_init.up.sql@@ -90,6 +90,25 @@ CREATE TABLE IF NOT EXISTS `connections_logs` (CONSTRAINT `connections_logs_users_id_fk` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`));++CREATE TABLE IF NOT EXISTS `city_locations_fr` (+ `geoname_id` int NOT NULL,+ `locale_code` text,+ `continent_code` text,+ `continent_name` text,+ `country_iso_code` text,+ `country_name` text,+ `subdivision_1_iso_code` text,+ `subdivision_1_name` text,+ `subdivision_2_iso_code` text,+ `subdivision_2_name` text,+ `city_name` text,+ `metro_code` text,+ `time_zone` text,+ `is_in_european_union` text,+ PRIMARY KEY (`geoname_id`)+);+CREATE TABLE IF NOT EXISTS `city_ipv4_complete` (`network_start_integer` bigint DEFAULT NULL,`network_last_integer` bigint DEFAULT NULL,@@ -123,21 +142,3 @@ CREATE TABLE IF NOT EXISTS `city_ipv6_complete` (KEY `City_IPv6_complete_City_Locations_fr_geoname_id_fk` (`geoname_id`),CONSTRAINT `City_IPv6_complete_City_Locations_fr_geoname_id_fk` FOREIGN KEY (`geoname_id`) REFERENCES `city_locations_fr` (`geoname_id`));--CREATE TABLE IF NOT EXISTS `city_locations_fr` (- `geoname_id` int NOT NULL,- `locale_code` text,- `continent_code` text,- `continent_name` text,- `country_iso_code` text,- `country_name` text,- `subdivision_1_iso_code` text,- `subdivision_1_name` text,- `subdivision_2_iso_code` text,- `subdivision_2_name` text,- `city_name` text,- `metro_code` text,- `time_zone` text,- `is_in_european_union` text,- PRIMARY KEY (`geoname_id`)-);\ No newline at end of file