mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-14 06:45:21 +00:00
migrations
This commit is contained in:
1 parent
c2e4f862bc
commit
7ccea9ff7e
100 files changed
+148
-148
No files matched your search
+1
-1
@@ -60,7 +60,7 @@ create table migtest_e_basic (
|
||||
status2 varchar(1) default 'N' not null,
|
||||
name varchar(127),
|
||||
description varchar(127),
|
||||
description2 varchar(227),
|
||||
description_file image,
|
||||
some_date datetime2,
|
||||
old_boolean bit default 0 not null,
|
||||
old_boolean2 bit,
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
-- Migrationscripts for ebean unittest
|
||||
-- apply changes
|
||||
EXEC usp_ebean_drop_column migtest_e_basic, description2;
|
||||
EXEC usp_ebean_drop_column migtest_e_basic, description_file;
|
||||
|
||||
EXEC usp_ebean_drop_column migtest_e_basic, old_boolean;
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ update migtest_e_basic set user_id = 23 where user_id is null;
|
||||
IF OBJECT_ID('fk_migtest_e_basic_user_id', 'F') IS NOT NULL alter table migtest_e_basic drop constraint fk_migtest_e_basic_user_id;
|
||||
alter table migtest_e_basic add default 23 for user_id;
|
||||
alter table migtest_e_basic alter column user_id integer not null;
|
||||
alter table migtest_e_basic add description2 varchar(227);
|
||||
alter table migtest_e_basic add description_file image;
|
||||
alter table migtest_e_basic add old_boolean bit default 0 not null;
|
||||
alter table migtest_e_basic add old_boolean2 bit;
|
||||
alter table migtest_e_basic add eref_id integer;
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
-2122378240, I__create_procs.sql
|
||||
-390904708, 1.0__initial.sql
|
||||
1983037247, 1.0__initial.sql
|
||||
-1042228916, 1.1.sql
|
||||
1470614292, 1.2__dropsFor_1.1.sql
|
||||
-948255182, 1.3.sql
|
||||
1019731053, 1.2__dropsFor_1.1.sql
|
||||
-897790738, 1.3.sql
|
||||
-1335541264, 1.4__dropsFor_1.3.sql
|
||||
1607822082, R__order_views_mssql.sql
|
||||
|
||||
Reference in new issue
Block a user