From c9b513fd7eed0b72a7b8cfe568cfb20d5239a667 Mon Sep 17 00:00:00 2001 From: Mike Salerno Date: Wed, 27 Nov 2024 22:28:19 -0500 Subject: [PATCH] fix data type of boolean column so postgres works --- .../Files/Database/Script/equip_migration_sqlite.sql | 4 ++-- .../Files/Database/Script/migration_mail_sqlite.sql | 4 ++-- .../Files/Database/Script/schema_sqlite.sql | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Arrowgene.Ddon.Database/Files/Database/Script/equip_migration_sqlite.sql b/Arrowgene.Ddon.Database/Files/Database/Script/equip_migration_sqlite.sql index d1731a82e..35d2bf3e7 100644 --- a/Arrowgene.Ddon.Database/Files/Database/Script/equip_migration_sqlite.sql +++ b/Arrowgene.Ddon.Database/Files/Database/Script/equip_migration_sqlite.sql @@ -6,11 +6,11 @@ CREATE TABLE "ddon_system_mail_attachment" ( "attachment_id" INTEGER NOT NULL, "message_id" INTEGER NOT NULL, "attachment_type" INTEGER NOT NULL, - "is_received" INTEGER NOT NULL DEFAULT 0, + "is_received" BOOLEAN NOT NULL DEFAULT FALSE, "param0" VARCHAR(256) NOT NULL DEFAULT "", "param1" INTEGER NOT NULL DEFAULT 0, "param2" INTEGER NOT NULL DEFAULT 0, "param3" INTEGER NOT NULL DEFAULT 0, PRIMARY KEY("attachment_id" AUTOINCREMENT), FOREIGN KEY("message_id") REFERENCES "ddon_system_mail"("message_id") ON DELETE CASCADE -); \ No newline at end of file +); diff --git a/Arrowgene.Ddon.Database/Files/Database/Script/migration_mail_sqlite.sql b/Arrowgene.Ddon.Database/Files/Database/Script/migration_mail_sqlite.sql index 54bd51836..52da82d1e 100644 --- a/Arrowgene.Ddon.Database/Files/Database/Script/migration_mail_sqlite.sql +++ b/Arrowgene.Ddon.Database/Files/Database/Script/migration_mail_sqlite.sql @@ -14,10 +14,10 @@ CREATE TABLE "ddon_system_mail_attachment" ( "message_id" INTEGER NOT NULL, "attachment_id" INTEGER NOT NULL, "attachment_type" INTEGER NOT NULL, - "is_received" INTEGER NOT NULL DEFAULT 0, + "is_received" BOOLEAN NOT NULL DEFAULT FALSE, "param0" VARCHAR(256) NOT NULL DEFAULT "", "param1" INTEGER NOT NULL DEFAULT 0, "param2" INTEGER NOT NULL DEFAULT 0, "param3" INTEGER NOT NULL DEFAULT 0, FOREIGN KEY("message_id") REFERENCES "ddon_system_mail"("message_id") ON DELETE CASCADE -); \ No newline at end of file +); diff --git a/Arrowgene.Ddon.Database/Files/Database/Script/schema_sqlite.sql b/Arrowgene.Ddon.Database/Files/Database/Script/schema_sqlite.sql index 565206abc..d4d4b79be 100644 --- a/Arrowgene.Ddon.Database/Files/Database/Script/schema_sqlite.sql +++ b/Arrowgene.Ddon.Database/Files/Database/Script/schema_sqlite.sql @@ -588,7 +588,7 @@ CREATE TABLE IF NOT EXISTS "ddon_system_mail_attachment" "attachment_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "message_id" INTEGER NOT NULL, "attachment_type" INTEGER NOT NULL, - "is_received" INTEGER NOT NULL DEFAULT 0, + "is_received" BOOLEAN NOT NULL DEFAULT FALSE, "param0" VARCHAR(256) NOT NULL DEFAULT '', "param1" INTEGER NOT NULL DEFAULT 0, "param2" INTEGER NOT NULL DEFAULT 0,