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
@@ -68,7 +68,7 @@ create table migtest_e_basic (
|
||||
status2 nvarchar(1) default 'N' not null,
|
||||
name nvarchar(127),
|
||||
description nvarchar(127),
|
||||
description2 nvarchar(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;
|
||||
|
||||
|
||||
@@ -32,7 +32,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 nvarchar(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
|
||||
-1036149520, 1.0__initial.sql
|
||||
-813787447, 1.0__initial.sql
|
||||
-898063858, 1.1.sql
|
||||
1470614292, 1.2__dropsFor_1.1.sql
|
||||
790811814, 1.3.sql
|
||||
1019731053, 1.2__dropsFor_1.1.sql
|
||||
-494373130, 1.3.sql
|
||||
-1335541264, 1.4__dropsFor_1.3.sql
|
||||
1607822082, R__order_views_mssql.sql
|
||||
|
||||
Reference in new issue
Block a user