We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a236f48 commit 834674dCopy full SHA for 834674d
data/migrations/20220820052811_resources_table.js
@@ -1,18 +1,18 @@
1
-
+//RESOURCES TABLE
2
exports.up = function (knex) {
3
return knex.schema.createTable('resources', tbl => {
4
tbl.increments('resource_id');
5
tbl.varchar('resource_name').notNullable().unique();
6
tbl.varchar('resource_description');
7
- })
+ });
8
9
10
11
};
12
13
14
exports.down = function (knex) {
15
- return knex.schema.dropTableIfExists('resources')
+ return knex.schema.dropTableIfExists('resources');
16
17
18
0 commit comments