add function names

Signed-off-by: Lykke Axlin <lykkeaxlin@hotmail.com>

Co-authored-by: klaraab <klarabroman@live.se>
This commit is contained in:
Lykke Axlin
2021-09-29 12:43:48 +02:00
parent 46173d9d58
commit 11d373f4e0
2 changed files with 4 additions and 4 deletions
@@ -14,7 +14,7 @@
* limitations under the License.
*/
exports.up = function (knex) {
exports.up = function up(knex) {
return knex.raw(`
CREATE OR REPLACE FUNCTION update_timestamp() RETURNS TRIGGER
LANGUAGE plpgsql
@@ -28,7 +28,7 @@ exports.up = function (knex) {
`);
};
exports.down = function (knex) {
exports.down = function down(knex) {
return knex.raw(`
DROP FUNCTION IF EXISTS update_timestamp() CASCADE;
`);
@@ -14,7 +14,7 @@
* limitations under the License.
*/
exports.up = async function setUpTables(knex) {
exports.up = async function up(knex) {
await knex.schema.createTable('metadata', table => {
table.comment('The table of Bazaar metadata');
table.text('name').notNullable().comment('The name of the entity');
@@ -54,7 +54,7 @@ exports.up = async function setUpTables(knex) {
});
};
exports.down = async function tearDownTables(knex) {
exports.down = async function down(knex) {
await knex.schema.dropTable('metadata');
await knex.schema.dropTable('members');
};