aboutsummaryrefslogtreecommitdiff
path: root/db/migrations/20180920224224_remove_is_anonymous_from_snippets.js
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrations/20180920224224_remove_is_anonymous_from_snippets.js')
-rw-r--r--db/migrations/20180920224224_remove_is_anonymous_from_snippets.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrations/20180920224224_remove_is_anonymous_from_snippets.js b/db/migrations/20180920224224_remove_is_anonymous_from_snippets.js
new file mode 100644
index 0000000..ac33267
--- /dev/null
+++ b/db/migrations/20180920224224_remove_is_anonymous_from_snippets.js
@@ -0,0 +1,11 @@
+exports.up = async function (knex, Promise) {
+ await knex.schema.table('snippets', table => {
+ table.dropColumn('is_anonymous');
+ });
+};
+
+exports.down = async function(knex, Promise) {
+ await knex.schema.table('snippets', table => {
+ table.integer('is_anonymous').unsigned().notNullable();
+ });
+};