Skip to content

Commit be65879

Browse files
committed
added announcements table
added boolean column
1 parent 14e91a4 commit be65879

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/* eslint-disable camelcase */
2+
3+
exports.shorthands = undefined;
4+
5+
exports.up = pgm => {
6+
pgm.sql(`
7+
CREATE TABLE IF NOT EXISTS announcements (
8+
id integer primary key,
9+
name character varying NOT NULL,
10+
is_enabled boolean NOT NULL DEFAULT false
11+
);
12+
`);
13+
};
14+
15+
exports.down = pgm => {
16+
pgm.sql(`
17+
DROP TABLE announcements;
18+
`)
19+
};

0 commit comments

Comments
 (0)