package org.openlmis.core.persistence.migrations;

import org.openlmis.core.persistence.Migration;

public class CreateProgramBasicDataFormTable extends Migration {
    @Override
    public void up() {
        execSQL("CREATE TABLE `program_data_Basic_items` " +
                "(`code` VARCHAR , " +
                "`product_id` BIGINT NOT NULL, " +
                "`form_id` BIGINT , " +
                "`isCustomAmount` BOOLEAN DEFAULT 0, " +
                "`name` VARCHAR , " +
                "`initialAmount` BIGINT , " +
                "`received` BIGINT , " +
                "`issued` BIGINT , " +
                "`adjustment` BIGINT , " +
                "`validate` VARCHAR , " +
                "`inventory` BIGINT  )");
    }
}

@@ -684,32 +684,196 @@
 %60 VARCHAR , %22 +%0A
+                %22%60createdAt%60 VARCHAR NOT NULL , %22 +%0A                %22%60updatedAt%60 VARCHAR NOT NULL , %22 +%0A                %22%60id%60 INTEGER PRIMARY KEY AUTOINCREMENT,%22 +%0A
                 

add basic model text input