プロジェクト

全般

プロフィール

リビジョン 406

堀内6年以上前に追加

工事種別・構成関連マスタ変更
種別・構成単価マスタ変更
管理マスタフラグ追加

差分を表示:

trunk/ddl/ProcessManagement.sql
1 1
-- Project Name : noname
2
-- Date/Time    : 2018/08/06 8:37:19
2
-- Date/Time    : 2018/09/20 10:20:05
3 3
-- Author       : Horiuchi
4 4
-- RDBMS Type   : MySQL
5 5
-- Application  : A5:SQL Mk-2
......
516 516
create index ComponentMaster_Index1
517 517
  on componentmaster(DisplayOrder);
518 518

  
519
-- ?\???H??????A?}?X?^
519
-- ?H?????E?\???????N?}?X?^
520 520
--* BackupToTempTable
521 521
drop table if exists componenttotypemaster cascade;
522 522

  
523 523
--* RestoreFromTempTable
524 524
create table componenttotypemaster (
525
  ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
526
  , TypeCode decimal(5,0) unsigned not null comment '?H?????R?[?h'
527
  , Dummy decimal(1,0) not null comment '?_?~?[????'
525
  TypeCode decimal(5,0) unsigned not null comment '?H?????R?[?h'
526
  , ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
527
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
528 528
  , EntryDate datetime not null comment '?o?^???t'
529 529
  , UpdateDate datetime not null comment '?X?V???t'
530
  , constraint componenttotypemaster_PKC primary key (ComponentCode,TypeCode)
531
) comment '?\???H??????A?}?X?^' ;
530
  , constraint componenttotypemaster_PKC primary key (TypeCode,ComponentCode)
531
) comment '?H?????E?\???????N?}?X?^' ;
532 532

  
533 533
create index ComponentToTypeMaster_Index1
534
  on componenttotypemaster(ComponentCode);
534
  on componenttotypemaster(TypeCode);
535 535

  
536 536
create index ComponentToTypeMaster_Index2
537
  on componenttotypemaster(TypeCode);
537
  on componenttotypemaster(ComponentCode);
538 538

  
539 539
-- ?H???????o??f?[?^
540 540
--* BackupToTempTable
......
949 949

  
950 950
--* RestoreFromTempTable
951 951
create table constructionspecunitprice (
952
  ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
952
  ConstructionTypeCode mediumint(8) unsigned not null comment '?H?????R?[?h'
953
  , ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
953 954
  , ItemCode decimal(5,0) unsigned not null comment '?H??L?['
954 955
  , SpecCode decimal(5,0) unsigned not null comment '???L?['
955
  , ConstructionTypeCode mediumint(8) unsigned not null comment '?H?????R?[?h'
956 956
  , UnitPrice decimal(9,2) not null comment '?P??'
957 957
  , EntryDate datetime not null comment '?o?^???t'
958 958
  , UpdateDate datetime not null comment '?X?V???t'
959
  , constraint constructionspecunitprice_PKC primary key (ComponentCode,ItemCode,SpecCode,ConstructionTypeCode)
959
  , constraint constructionspecunitprice_PKC primary key (ConstructionTypeCode,ComponentCode,ItemCode,SpecCode)
960 960
) comment '???P???}?X?^' ;
961 961

  
962
create index constructionspecunitprice_Index1
963
  on constructionspecunitprice(ConstructionTypeCode,ComponentCode,ItemCode);
964

  
962 965
-- ?H?????}?X?^
963 966
--* BackupToTempTable
964 967
drop table if exists constructiontypemaster cascade;
......
1337 1340
  , REQUESTNO decimal(10,0) not null comment '????No'
1338 1341
  , ORDERNO decimal(2,0) comment '??t???'
1339 1342
  , DEPOSITAMOUNT decimal(10,0) comment '???????z?i??????j'
1340
  , TAXAMOUNT decimal(10,0) DEFAULT NULL COMMENT '?????'
1343
  , TAXAMOUNT decimal(10,0) comment '?????'
1341 1344
  , DISCOUNTAMOUNT decimal(10,0) comment '?l???????z'
1342 1345
  , CNSTRPRICE decimal(10,0) comment '?????'
1343 1346
  , FEES decimal(10,0) comment '????'
......
2661 2664
  , SloganString1 varchar(100) comment '?W??1'
2662 2665
  , SloganString2 varchar(100) comment '?W??2'
2663 2666
  , SloganString3 varchar(100) comment '?W??3'
2667
  , OperationFlg decimal(2,0) unsigned not null comment '???F?^?p?t???O'
2664 2668
  , EntryDate datetime not null comment '?o?^???t'
2665 2669
  , UpdateDate datetime not null comment '?X?V???t'
2666 2670
  , constraint systemmaster_PKC primary key (SystemCode)
trunk/ddl/?H?????E?\???????N?}?X?^??X.sql
1
-- ?H?????E?\???????N?}?X?^
2
drop table if exists componenttotypemaster cascade;
3

  
4
create table componenttotypemaster (
5
  TypeCode decimal(5,0) unsigned not null comment '?H?????R?[?h'
6
  , ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
7
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
8
  , EntryDate datetime not null comment '?o?^???t'
9
  , UpdateDate datetime not null comment '?X?V???t'
10
  , constraint componenttotypemaster_PKC primary key (TypeCode, ComponentCode)
11
) comment '?H?????E?\???????N?}?X?^' ;
12

  
13
create index ComponentToTypeMaster_Index1
14
  on componenttotypemaster(TypeCode);
15

  
16
create index ComponentToTypeMaster_Index2
17
  on componenttotypemaster(ComponentCode);
trunk/ddl/?H???????P???}?X?^??X.sql
1
-- ???P???}?X?^
2
drop table if exists constructionspecunitprice_OLD cascade;
3
CREATE TABLE constructionspecunitprice_OLD As Select * from constructionspecunitprice;
4

  
5
drop table if exists constructionspecunitprice cascade;
6

  
7
create table constructionspecunitprice (
8
  ConstructionTypeCode mediumint(8) unsigned not null comment '?H?????R?[?h'
9
  , ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
10
  , ItemCode decimal(5,0) unsigned not null comment '?H??L?['
11
  , SpecCode decimal(5,0) unsigned not null comment '???L?['
12
  , UnitPrice decimal(9,2) not null comment '?P??'
13
  , EntryDate datetime not null comment '?o?^???t'
14
  , UpdateDate datetime not null comment '?X?V???t'
15
  , constraint constructionspecunitprice_PKC primary key (ConstructionTypeCode,ComponentCode,ItemCode,SpecCode)
16
) comment '???P???}?X?^' ;
17

  
18
create index constructionspecunitprice_Index1
19
  on constructionspecunitprice(ConstructionTypeCode,ComponentCode,ItemCode);
20

  
21
create index constructionspecunitprice_Index2
22
  on constructionspecunitprice(ItemCode,SpecCode);
23

  
24
Insert INTO constructionspecunitprice
25
SELECT
26
  ConstructionTypeCode
27
  , ComponentCode
28
  , ItemCode
29
  , SpecCode
30
  , UnitPrice
31
  , EntryDate
32
  , UpdateDate
33
FROM constructionspecunitprice_OLD
34
;
35
commit;
trunk/ddl/????}?X?^??X.sql
1
-- ????}?X?^
2
drop table if exists systemmaster_OLD cascade;
3
CREATE TABLE systemmaster_OLD As Select * from systemmaster;
4

  
5
drop table if exists systemmaster cascade;
6

  
7
create table systemmaster (
8
  SystemCode decimal(3,0) unsigned not null comment '???R?[?h'
9
  , CompanyName1 varchar(60) not null comment '?????P'
10
  , CompanyName2 varchar(60) comment '?????Q'
11
  , CEOName varchar(60) not null comment '??\?????'
12
  , CEOPositionName varchar(60) comment '??\???E??'
13
  , ZipCode varchar(8) not null comment '?X????'
14
  , Address1 varchar(60) not null comment '?Z???P'
15
  , Address2 varchar(60) comment '?Z??2'
16
  , Address3 varchar(60) comment '?Z??3'
17
  , PhoneNumber varchar(13) not null comment '?d?b???'
18
  , FaxNumber varchar(13) comment 'FAX???'
19
  , HomePageURL varchar(120) comment '?z?[???y?[?WURL'
20
  , ConsumptionTax decimal(4,2) not null comment '?????'
21
  , CooperationRate decimal(4,2) not null comment '???????'
22
  , StatutoryWelfareRate decimal(4,2) not null comment '?@???????'
23
  , FuelPrice decimal(5,2) not null comment '?R???L???P??'
24
  , AreaDistance decimal(5,2) not null comment '????u????????'
25
  , ExcelSavePath varchar(120) comment 'Excel????p?X'
26
  , BusinessPeriod smallint(6) not null comment '????c?????'
27
  , ConstrYear smallint(6) not null comment '????H???N?x'
28
  , BusinessBeginDate datetime not null comment '?c????????'
29
  , ConstrBeginDate datetime not null comment '?H???N?x?????'
30
  , BusinessCompDate datetime not null comment '?c?????????'
31
  , ConstrCompDate datetime not null comment '?H???N?x??????'
32
  , ConstructionNoBase decimal(1,0) not null comment '?H????????l'
33
  , SloganString1 varchar(100) comment '?W??1'
34
  , SloganString2 varchar(100) comment '?W??2'
35
  , SloganString3 varchar(100) comment '?W??3'
36
  , OperationFlg decimal(2,0) unsigned not null comment '???F?^?p?t???O'
37
  , EntryDate datetime not null comment '?o?^???t'
38
  , UpdateDate datetime not null comment '?X?V???t'
39
  , constraint systemmaster_PKC primary key (SystemCode)
40
) comment '????}?X?^' ;
41

  
42
Insert INTO systemmaster
43
SELECT
44
  SystemCode
45
  , CompanyName1
46
  , CompanyName2
47
  , CEOName
48
  , CEOPositionName
49
  , ZipCode
50
  , Address1
51
  , Address2
52
  , Address3
53
  , PhoneNumber
54
  , FaxNumber
55
  , HomePageURL
56
  , ConsumptionTax
57
  , CooperationRate
58
  , StatutoryWelfareRate
59
  , FuelPrice
60
  , AreaDistance
61
  , ExcelSavePath
62
  , BusinessPeriod
63
  , ConstrYear
64
  , BusinessBeginDate
65
  , ConstrBeginDate
66
  , BusinessCompDate
67
  , ConstrCompDate
68
  , ConstructionNoBase
69
  , SloganString1
70
  , SloganString2
71
  , SloganString3
72
  , 0
73
  , EntryDate
74
  , UpdateDate
75
FROM systemmaster_OLD
76
;
77
commit;

他の形式にエクスポート: Unified diff