Browse Source

fix: nc_project_v2 already have description field - remove it from latest migration

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5575/head
Pranav C 2 years ago
parent
commit
49a79a37e0
  1. 6
      packages/nocodb/src/lib/migrations/v2/nc_030_add_description_field.ts

6
packages/nocodb/src/lib/migrations/v2/nc_030_add_description_field.ts

@ -2,9 +2,6 @@ import { MetaTable } from '../../utils/globals';
import type { Knex } from 'knex';
const up = async (knex: Knex) => {
await knex.schema.alterTable(MetaTable.PROJECT, (table) => {
table.string('description', 255);
});
await knex.schema.alterTable(MetaTable.BASES, (table) => {
table.string('description', 255);
});
@ -20,9 +17,6 @@ const up = async (knex: Knex) => {
};
const down = async (knex) => {
await knex.schema.alterTable(MetaTable.PROJECT, (table) => {
table.dropColumn('description');
});
await knex.schema.alterTable(MetaTable.BASES, (table) => {
table.dropColumn('description');
});

Loading…
Cancel
Save