Skip to content

Commit ebdc588

Browse files
committed
Fix psql deployment script
1 parent 1f31b52 commit ebdc588

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

deployment/database/insert_default_records.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ VALUES (DEFAULT, 'Arial', '#000000', 0, 0, 50, false),
2020
(DEFAULT, 'Arial', '#000000', 100, 100, 50, false),
2121
(DEFAULT, 'Arial', '#000000', 200, 200, 50, false);
2222

23-
INSERT INTO main.image (url, id, format)
24-
VALUES (null, DEFAULT, null);
23+
INSERT INTO main.image (base64, id)
24+
VALUES (null, DEFAULT);

deployment/database/tables_creation.sql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,10 @@ create table if not exists main.font_settings
3030

3131
create table if not exists main.image
3232
(
33-
url text,
33+
base64 bytea,
3434
id serial
3535
constraint image_pk
3636
primary key,
37-
format text
3837
);
3938

4039
create table if not exists main.advanced_settings_passwords

0 commit comments

Comments
 (0)