Skip to content

Commit

Permalink
Merge #5919
Browse files Browse the repository at this point in the history
5919: Fixed problem with migrate.sql file r=lomamech a=jmcameron

Fixed an oversight in the migrate.sql file.

Tested on IMCK database and it works but takes a long time to complete.

Co-authored-by: Jonathan Cameron <jmcameron@gmail.com>
  • Loading branch information
bors[bot] and jmcameron committed Sep 16, 2021
2 parents 3b43db8 + 949d1c0 commit 0703612
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/models/migrations/next/migrate.sql
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@ ALTER TABLE `cost_center_basis` MODIFY COLUMN `name` VARCHAR(200) NOT NULL;

/**
author: @jmcameron
date: 2021-09-09
date: 2021-09-09, updated 2021-09-15
description: Create cost basis items
*/
CALL add_column_if_missing('cost_center_basis', 'description', 'TEXT DEFAULT NULL AFTER `name`');
CALL add_column_if_missing('cost_center_basis', 'is_predefined', 'BOOLEAN NOT NULL DEFAULT 0 AFTER `description`');


/**
* THE USE OF RENAME IMPLY THAT TABLES EXISTS BEFORE TO RENAME
* AFTER A FRESH BUILD (yarn build:db) THIS CODES ARE NOT NECESSARY
Expand Down

0 comments on commit 0703612

Please sign in to comment.