Skip to content

Commit 1d70360

Browse files
committed
added announcements table
1 parent 14e91a4 commit 1d70360

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
);
11+
`);
12+
};
13+
14+
exports.down = pgm => {
15+
pgm.sql(`
16+
DROP TABLE announcements;
17+
`)
18+
};

0 commit comments

Comments
 (0)