add function names
Signed-off-by: Lykke Axlin <lykkeaxlin@hotmail.com> Co-authored-by: klaraab <klarabroman@live.se>
This commit is contained in:
@@ -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');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user