Skip to content

Commit

Permalink
Changed test data to support null values for dates (hyperifyio/test#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaakko Heusala committed Sep 9, 2024
1 parent 10c3302 commit 11c5fbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/initial.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
DROP TABLE IF EXISTS prefix_foos;
CREATE TABLE prefix_foos (
foo_id BIGSERIAL PRIMARY KEY,
foo_date TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
foo_date TIMESTAMP NULL,
foo_name varchar(255) NOT NULL default '',
non_updatable VARCHAR(255) NOT NULL default ''
);
Expand All @@ -18,7 +18,7 @@ CREATE TABLE prefix_foos (
DROP TABLE IF EXISTS prefix_bars;
CREATE TABLE prefix_bars (
bar_id BIGSERIAL PRIMARY KEY,
bar_date TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
bar_date TIMESTAMP NULL,
bar_updated TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
bar_name varchar(255) NOT NULL default ''
);
Expand Down

0 comments on commit 11c5fbc

Please sign in to comment.