set default value for postgres only

This commit is contained in:
Mario
2024-01-07 20:34:47 +00:00
parent 4713241444
commit ca216ae819
3 changed files with 18 additions and 12 deletions

View File

@@ -244,17 +244,17 @@ CREATE TABLE "channel" (
"channel_name" text NOT NULL DEFAULT '',
"channel_address" text NOT NULL DEFAULT '',
"channel_guid" text NOT NULL DEFAULT '',
"channel_guid_sig" text NOT NULL,
"channel_guid_sig" text NOT NULL DEFAULT '',
"channel_hash" text NOT NULL DEFAULT '',
"channel_portable_id" text NOT NULL DEFAULT '',
"channel_timezone" varchar(128) NOT NULL DEFAULT 'UTC',
"channel_location" text NOT NULL DEFAULT '',
"channel_theme" text NOT NULL DEFAULT '',
"channel_startpage" text NOT NULL DEFAULT '',
"channel_pubkey" text NOT NULL,
"channel_prvkey" text NOT NULL,
"channel_epubkey" text NOT NULL,
"channel_eprvkey" text NOT NULL,
"channel_pubkey" text NOT NULL DEFAULT '',
"channel_prvkey" text NOT NULL DEFAULT '',
"channel_epubkey" text NOT NULL DEFAULT '',
"channel_eprvkey" text NOT NULL DEFAULT '',
"channel_notifyflags" bigint NOT NULL DEFAULT '65535',
"channel_pageflags" bigint NOT NULL DEFAULT '0',
"channel_dirdate" timestamp NOT NULL DEFAULT '0001-01-01 00:00:00',
@@ -1241,9 +1241,9 @@ create index "vote_element" on vote ("vote_element");
CREATE TABLE "xchan" (
"xchan_hash" text NOT NULL,
"xchan_guid" text NOT NULL DEFAULT '',
"xchan_guid_sig" text NOT NULL,
"xchan_pubkey" text NOT NULL,
"xchan_epubkey" text NOT NULL,
"xchan_guid_sig" text NOT NULL DEFAULT '',
"xchan_pubkey" text NOT NULL DEFAULT '',
"xchan_epubkey" text NOT NULL DEFAULT '',
"xchan_photo_mimetype" text NOT NULL DEFAULT 'image/jpeg',
"xchan_photo_l" text NOT NULL DEFAULT '',
"xchan_photo_m" text NOT NULL DEFAULT '',