Skip to content

Commit df1df2b

Browse files
committed
added announcements table
deleted announcements table updated column for emojis
1 parent 546f180 commit df1df2b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
title character varying NOT NULL,
10+
description TEXT NOT NULL,
11+
is_enabled boolean NOT NULL DEFAULT false
12+
);
13+
`);
14+
};
15+
16+
exports.down = pgm => {
17+
pgm.sql(`
18+
DROP TABLE announcements;
19+
`)
20+
};

0 commit comments

Comments
 (0)