@dbos-inc/dbos-sdk 0.8.56-preview → 0.8.57-preview
Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
|
|
1
|
+
exports.up = async function(knex) {
|
2
|
+
await knex.raw('create extension if not exists "uuid-ossp"');
|
3
|
+
return knex.schema.withSchema('dbos')
|
4
|
+
.table('notifications', function(table) {
|
5
|
+
table.text('message_uuid').primary().defaultTo(knex.raw('uuid_generate_v4()'));
|
6
|
+
})
|
7
|
+
|
8
|
+
};
|
9
|
+
|
10
|
+
exports.down = function(knex) {
|
11
|
+
return knex.schema.withSchema('dbos')
|
12
|
+
.table('notifications', function(table) {
|
13
|
+
table.dropColumn('message_uuid');
|
14
|
+
});
|
15
|
+
};
|