Commit 0288309e3b14ac1f89b1e58f9e5b190a519a1674
1 parent
9d102a1b
fix: sqlserver DROP TABLE 使用GO替代分号
Showing
2 changed files
with
99 additions
and
51 deletions
sql/sqlserver/ruoyi-vue-pro.sql
| ... | ... | @@ -6,6 +6,7 @@ |
| 6 | 6 | Target Server Type : Microsoft SQL Server |
| 7 | 7 | |
| 8 | 8 | Date: 2024-05-08 00:22:09 |
| 9 | + Date: 2024-05-10 22:07:48 | |
| 9 | 10 | */ |
| 10 | 11 | |
| 11 | 12 | |
| ... | ... | @@ -14,7 +15,6 @@ |
| 14 | 15 | -- ---------------------------- |
| 15 | 16 | DROP TABLE IF EXISTS dual |
| 16 | 17 | GO |
| 17 | - | |
| 18 | 18 | CREATE TABLE dual |
| 19 | 19 | ( |
| 20 | 20 | id int |
| ... | ... | @@ -38,7 +38,8 @@ GO |
| 38 | 38 | -- ---------------------------- |
| 39 | 39 | -- Table structure for infra_api_access_log |
| 40 | 40 | -- ---------------------------- |
| 41 | -DROP TABLE IF EXISTS infra_api_access_log; | |
| 41 | +DROP TABLE IF EXISTS infra_api_access_log | |
| 42 | +GO | |
| 42 | 43 | CREATE TABLE infra_api_access_log |
| 43 | 44 | ( |
| 44 | 45 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -256,7 +257,8 @@ GO |
| 256 | 257 | -- ---------------------------- |
| 257 | 258 | -- Table structure for infra_api_error_log |
| 258 | 259 | -- ---------------------------- |
| 259 | -DROP TABLE IF EXISTS infra_api_error_log; | |
| 260 | +DROP TABLE IF EXISTS infra_api_error_log | |
| 261 | +GO | |
| 260 | 262 | CREATE TABLE infra_api_error_log |
| 261 | 263 | ( |
| 262 | 264 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -515,7 +517,8 @@ GO |
| 515 | 517 | -- ---------------------------- |
| 516 | 518 | -- Table structure for infra_codegen_column |
| 517 | 519 | -- ---------------------------- |
| 518 | -DROP TABLE IF EXISTS infra_codegen_column; | |
| 520 | +DROP TABLE IF EXISTS infra_codegen_column | |
| 521 | +GO | |
| 519 | 522 | CREATE TABLE infra_codegen_column |
| 520 | 523 | ( |
| 521 | 524 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -714,7 +717,8 @@ GO |
| 714 | 717 | -- ---------------------------- |
| 715 | 718 | -- Table structure for infra_codegen_table |
| 716 | 719 | -- ---------------------------- |
| 717 | -DROP TABLE IF EXISTS infra_codegen_table; | |
| 720 | +DROP TABLE IF EXISTS infra_codegen_table | |
| 721 | +GO | |
| 718 | 722 | CREATE TABLE infra_codegen_table |
| 719 | 723 | ( |
| 720 | 724 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -921,7 +925,8 @@ GO |
| 921 | 925 | -- ---------------------------- |
| 922 | 926 | -- Table structure for infra_config |
| 923 | 927 | -- ---------------------------- |
| 924 | -DROP TABLE IF EXISTS infra_config; | |
| 928 | +DROP TABLE IF EXISTS infra_config | |
| 929 | +GO | |
| 925 | 930 | CREATE TABLE infra_config |
| 926 | 931 | ( |
| 927 | 932 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -1068,7 +1073,8 @@ GO |
| 1068 | 1073 | -- ---------------------------- |
| 1069 | 1074 | -- Table structure for infra_data_source_config |
| 1070 | 1075 | -- ---------------------------- |
| 1071 | -DROP TABLE IF EXISTS infra_data_source_config; | |
| 1076 | +DROP TABLE IF EXISTS infra_data_source_config | |
| 1077 | +GO | |
| 1072 | 1078 | CREATE TABLE infra_data_source_config |
| 1073 | 1079 | ( |
| 1074 | 1080 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -1163,7 +1169,8 @@ GO |
| 1163 | 1169 | -- ---------------------------- |
| 1164 | 1170 | -- Table structure for infra_file |
| 1165 | 1171 | -- ---------------------------- |
| 1166 | -DROP TABLE IF EXISTS infra_file; | |
| 1172 | +DROP TABLE IF EXISTS infra_file | |
| 1173 | +GO | |
| 1167 | 1174 | CREATE TABLE infra_file |
| 1168 | 1175 | ( |
| 1169 | 1176 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -1274,7 +1281,8 @@ GO |
| 1274 | 1281 | -- ---------------------------- |
| 1275 | 1282 | -- Table structure for infra_file_config |
| 1276 | 1283 | -- ---------------------------- |
| 1277 | -DROP TABLE IF EXISTS infra_file_config; | |
| 1284 | +DROP TABLE IF EXISTS infra_file_config | |
| 1285 | +GO | |
| 1278 | 1286 | CREATE TABLE infra_file_config |
| 1279 | 1287 | ( |
| 1280 | 1288 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -1395,7 +1403,8 @@ GO |
| 1395 | 1403 | -- ---------------------------- |
| 1396 | 1404 | -- Table structure for infra_file_content |
| 1397 | 1405 | -- ---------------------------- |
| 1398 | -DROP TABLE IF EXISTS infra_file_content; | |
| 1406 | +DROP TABLE IF EXISTS infra_file_content | |
| 1407 | +GO | |
| 1399 | 1408 | CREATE TABLE infra_file_content |
| 1400 | 1409 | ( |
| 1401 | 1410 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -1482,7 +1491,8 @@ GO |
| 1482 | 1491 | -- ---------------------------- |
| 1483 | 1492 | -- Table structure for infra_job |
| 1484 | 1493 | -- ---------------------------- |
| 1485 | -DROP TABLE IF EXISTS infra_job; | |
| 1494 | +DROP TABLE IF EXISTS infra_job | |
| 1495 | +GO | |
| 1486 | 1496 | CREATE TABLE infra_job |
| 1487 | 1497 | ( |
| 1488 | 1498 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -1645,7 +1655,8 @@ GO |
| 1645 | 1655 | -- ---------------------------- |
| 1646 | 1656 | -- Table structure for infra_job_log |
| 1647 | 1657 | -- ---------------------------- |
| 1648 | -DROP TABLE IF EXISTS infra_job_log; | |
| 1658 | +DROP TABLE IF EXISTS infra_job_log | |
| 1659 | +GO | |
| 1649 | 1660 | CREATE TABLE infra_job_log |
| 1650 | 1661 | ( |
| 1651 | 1662 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -1780,7 +1791,8 @@ GO |
| 1780 | 1791 | -- ---------------------------- |
| 1781 | 1792 | -- Table structure for system_dept |
| 1782 | 1793 | -- ---------------------------- |
| 1783 | -DROP TABLE IF EXISTS system_dept; | |
| 1794 | +DROP TABLE IF EXISTS system_dept | |
| 1795 | +GO | |
| 1784 | 1796 | CREATE TABLE system_dept |
| 1785 | 1797 | ( |
| 1786 | 1798 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -1949,7 +1961,8 @@ GO |
| 1949 | 1961 | -- ---------------------------- |
| 1950 | 1962 | -- Table structure for system_dict_data |
| 1951 | 1963 | -- ---------------------------- |
| 1952 | -DROP TABLE IF EXISTS system_dict_data; | |
| 1964 | +DROP TABLE IF EXISTS system_dict_data | |
| 1965 | +GO | |
| 1953 | 1966 | CREATE TABLE system_dict_data |
| 1954 | 1967 | ( |
| 1955 | 1968 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -2820,7 +2833,8 @@ GO |
| 2820 | 2833 | -- ---------------------------- |
| 2821 | 2834 | -- Table structure for system_dict_type |
| 2822 | 2835 | -- ---------------------------- |
| 2823 | -DROP TABLE IF EXISTS system_dict_type; | |
| 2836 | +DROP TABLE IF EXISTS system_dict_type | |
| 2837 | +GO | |
| 2824 | 2838 | CREATE TABLE system_dict_type |
| 2825 | 2839 | ( |
| 2826 | 2840 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -3103,7 +3117,8 @@ GO |
| 3103 | 3117 | -- ---------------------------- |
| 3104 | 3118 | -- Table structure for system_login_log |
| 3105 | 3119 | -- ---------------------------- |
| 3106 | -DROP TABLE IF EXISTS system_login_log; | |
| 3120 | +DROP TABLE IF EXISTS system_login_log | |
| 3121 | +GO | |
| 3107 | 3122 | CREATE TABLE system_login_log |
| 3108 | 3123 | ( |
| 3109 | 3124 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -3238,7 +3253,8 @@ GO |
| 3238 | 3253 | -- ---------------------------- |
| 3239 | 3254 | -- Table structure for system_mail_account |
| 3240 | 3255 | -- ---------------------------- |
| 3241 | -DROP TABLE IF EXISTS system_mail_account; | |
| 3256 | +DROP TABLE IF EXISTS system_mail_account | |
| 3257 | +GO | |
| 3242 | 3258 | CREATE TABLE system_mail_account |
| 3243 | 3259 | ( |
| 3244 | 3260 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -3379,7 +3395,8 @@ GO |
| 3379 | 3395 | -- ---------------------------- |
| 3380 | 3396 | -- Table structure for system_mail_log |
| 3381 | 3397 | -- ---------------------------- |
| 3382 | -DROP TABLE IF EXISTS system_mail_log; | |
| 3398 | +DROP TABLE IF EXISTS system_mail_log | |
| 3399 | +GO | |
| 3383 | 3400 | CREATE TABLE system_mail_log |
| 3384 | 3401 | ( |
| 3385 | 3402 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -3562,7 +3579,8 @@ GO |
| 3562 | 3579 | -- ---------------------------- |
| 3563 | 3580 | -- Table structure for system_mail_template |
| 3564 | 3581 | -- ---------------------------- |
| 3565 | -DROP TABLE IF EXISTS system_mail_template; | |
| 3582 | +DROP TABLE IF EXISTS system_mail_template | |
| 3583 | +GO | |
| 3566 | 3584 | CREATE TABLE system_mail_template |
| 3567 | 3585 | ( |
| 3568 | 3586 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -3717,7 +3735,8 @@ GO |
| 3717 | 3735 | -- ---------------------------- |
| 3718 | 3736 | -- Table structure for system_menu |
| 3719 | 3737 | -- ---------------------------- |
| 3720 | -DROP TABLE IF EXISTS system_menu; | |
| 3738 | +DROP TABLE IF EXISTS system_menu | |
| 3739 | +GO | |
| 3721 | 3740 | CREATE TABLE system_menu |
| 3722 | 3741 | ( |
| 3723 | 3742 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -5478,7 +5497,8 @@ GO |
| 5478 | 5497 | -- ---------------------------- |
| 5479 | 5498 | -- Table structure for system_notice |
| 5480 | 5499 | -- ---------------------------- |
| 5481 | -DROP TABLE IF EXISTS system_notice; | |
| 5500 | +DROP TABLE IF EXISTS system_notice | |
| 5501 | +GO | |
| 5482 | 5502 | CREATE TABLE system_notice |
| 5483 | 5503 | ( |
| 5484 | 5504 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -5601,7 +5621,8 @@ GO |
| 5601 | 5621 | -- ---------------------------- |
| 5602 | 5622 | -- Table structure for system_notify_message |
| 5603 | 5623 | -- ---------------------------- |
| 5604 | -DROP TABLE IF EXISTS system_notify_message; | |
| 5624 | +DROP TABLE IF EXISTS system_notify_message | |
| 5625 | +GO | |
| 5605 | 5626 | CREATE TABLE system_notify_message |
| 5606 | 5627 | ( |
| 5607 | 5628 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -5784,7 +5805,8 @@ GO |
| 5784 | 5805 | -- ---------------------------- |
| 5785 | 5806 | -- Table structure for system_notify_template |
| 5786 | 5807 | -- ---------------------------- |
| 5787 | -DROP TABLE IF EXISTS system_notify_template; | |
| 5808 | +DROP TABLE IF EXISTS system_notify_template | |
| 5809 | +GO | |
| 5788 | 5810 | CREATE TABLE system_notify_template |
| 5789 | 5811 | ( |
| 5790 | 5812 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -5911,7 +5933,8 @@ GO |
| 5911 | 5933 | -- ---------------------------- |
| 5912 | 5934 | -- Table structure for system_oauth2_access_token |
| 5913 | 5935 | -- ---------------------------- |
| 5914 | -DROP TABLE IF EXISTS system_oauth2_access_token; | |
| 5936 | +DROP TABLE IF EXISTS system_oauth2_access_token | |
| 5937 | +GO | |
| 5915 | 5938 | CREATE TABLE system_oauth2_access_token |
| 5916 | 5939 | ( |
| 5917 | 5940 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -6051,7 +6074,8 @@ GO |
| 6051 | 6074 | -- ---------------------------- |
| 6052 | 6075 | -- Table structure for system_oauth2_approve |
| 6053 | 6076 | -- ---------------------------- |
| 6054 | -DROP TABLE IF EXISTS system_oauth2_approve; | |
| 6077 | +DROP TABLE IF EXISTS system_oauth2_approve | |
| 6078 | +GO | |
| 6055 | 6079 | CREATE TABLE system_oauth2_approve |
| 6056 | 6080 | ( |
| 6057 | 6081 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -6170,7 +6194,8 @@ GO |
| 6170 | 6194 | -- ---------------------------- |
| 6171 | 6195 | -- Table structure for system_oauth2_client |
| 6172 | 6196 | -- ---------------------------- |
| 6173 | -DROP TABLE IF EXISTS system_oauth2_client; | |
| 6197 | +DROP TABLE IF EXISTS system_oauth2_client | |
| 6198 | +GO | |
| 6174 | 6199 | CREATE TABLE system_oauth2_client |
| 6175 | 6200 | ( |
| 6176 | 6201 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -6375,7 +6400,8 @@ GO |
| 6375 | 6400 | -- ---------------------------- |
| 6376 | 6401 | -- Table structure for system_oauth2_code |
| 6377 | 6402 | -- ---------------------------- |
| 6378 | -DROP TABLE IF EXISTS system_oauth2_code; | |
| 6403 | +DROP TABLE IF EXISTS system_oauth2_code | |
| 6404 | +GO | |
| 6379 | 6405 | CREATE TABLE system_oauth2_code |
| 6380 | 6406 | ( |
| 6381 | 6407 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -6510,7 +6536,8 @@ GO |
| 6510 | 6536 | -- ---------------------------- |
| 6511 | 6537 | -- Table structure for system_oauth2_refresh_token |
| 6512 | 6538 | -- ---------------------------- |
| 6513 | -DROP TABLE IF EXISTS system_oauth2_refresh_token; | |
| 6539 | +DROP TABLE IF EXISTS system_oauth2_refresh_token | |
| 6540 | +GO | |
| 6514 | 6541 | CREATE TABLE system_oauth2_refresh_token |
| 6515 | 6542 | ( |
| 6516 | 6543 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -6629,7 +6656,8 @@ GO |
| 6629 | 6656 | -- ---------------------------- |
| 6630 | 6657 | -- Table structure for system_operate_log |
| 6631 | 6658 | -- ---------------------------- |
| 6632 | -DROP TABLE IF EXISTS system_operate_log; | |
| 6659 | +DROP TABLE IF EXISTS system_operate_log | |
| 6660 | +GO | |
| 6633 | 6661 | CREATE TABLE system_operate_log |
| 6634 | 6662 | ( |
| 6635 | 6663 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -6796,7 +6824,8 @@ GO |
| 6796 | 6824 | -- ---------------------------- |
| 6797 | 6825 | -- Table structure for system_post |
| 6798 | 6826 | -- ---------------------------- |
| 6799 | -DROP TABLE IF EXISTS system_post; | |
| 6827 | +DROP TABLE IF EXISTS system_post | |
| 6828 | +GO | |
| 6800 | 6829 | CREATE TABLE system_post |
| 6801 | 6830 | ( |
| 6802 | 6831 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -6929,7 +6958,8 @@ GO |
| 6929 | 6958 | -- ---------------------------- |
| 6930 | 6959 | -- Table structure for system_role |
| 6931 | 6960 | -- ---------------------------- |
| 6932 | -DROP TABLE IF EXISTS system_role; | |
| 6961 | +DROP TABLE IF EXISTS system_role | |
| 6962 | +GO | |
| 6933 | 6963 | CREATE TABLE system_role |
| 6934 | 6964 | ( |
| 6935 | 6965 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -7090,7 +7120,8 @@ GO |
| 7090 | 7120 | -- ---------------------------- |
| 7091 | 7121 | -- Table structure for system_role_menu |
| 7092 | 7122 | -- ---------------------------- |
| 7093 | -DROP TABLE IF EXISTS system_role_menu; | |
| 7123 | +DROP TABLE IF EXISTS system_role_menu | |
| 7124 | +GO | |
| 7094 | 7125 | CREATE TABLE system_role_menu |
| 7095 | 7126 | ( |
| 7096 | 7127 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -8837,7 +8868,8 @@ GO |
| 8837 | 8868 | -- ---------------------------- |
| 8838 | 8869 | -- Table structure for system_sms_channel |
| 8839 | 8870 | -- ---------------------------- |
| 8840 | -DROP TABLE IF EXISTS system_sms_channel; | |
| 8871 | +DROP TABLE IF EXISTS system_sms_channel | |
| 8872 | +GO | |
| 8841 | 8873 | CREATE TABLE system_sms_channel |
| 8842 | 8874 | ( |
| 8843 | 8875 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -8976,7 +9008,8 @@ GO |
| 8976 | 9008 | -- ---------------------------- |
| 8977 | 9009 | -- Table structure for system_sms_code |
| 8978 | 9010 | -- ---------------------------- |
| 8979 | -DROP TABLE IF EXISTS system_sms_code; | |
| 9011 | +DROP TABLE IF EXISTS system_sms_code | |
| 9012 | +GO | |
| 8980 | 9013 | CREATE TABLE system_sms_code |
| 8981 | 9014 | ( |
| 8982 | 9015 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -9114,7 +9147,8 @@ GO |
| 9114 | 9147 | -- ---------------------------- |
| 9115 | 9148 | -- Table structure for system_sms_log |
| 9116 | 9149 | -- ---------------------------- |
| 9117 | -DROP TABLE IF EXISTS system_sms_log; | |
| 9150 | +DROP TABLE IF EXISTS system_sms_log | |
| 9151 | +GO | |
| 9118 | 9152 | CREATE TABLE system_sms_log |
| 9119 | 9153 | ( |
| 9120 | 9154 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -9345,7 +9379,8 @@ GO |
| 9345 | 9379 | -- ---------------------------- |
| 9346 | 9380 | -- Table structure for system_sms_template |
| 9347 | 9381 | -- ---------------------------- |
| 9348 | -DROP TABLE IF EXISTS system_sms_template; | |
| 9382 | +DROP TABLE IF EXISTS system_sms_template | |
| 9383 | +GO | |
| 9349 | 9384 | CREATE TABLE system_sms_template |
| 9350 | 9385 | ( |
| 9351 | 9386 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -9526,7 +9561,8 @@ GO |
| 9526 | 9561 | -- ---------------------------- |
| 9527 | 9562 | -- Table structure for system_social_client |
| 9528 | 9563 | -- ---------------------------- |
| 9529 | -DROP TABLE IF EXISTS system_social_client; | |
| 9564 | +DROP TABLE IF EXISTS system_social_client | |
| 9565 | +GO | |
| 9530 | 9566 | CREATE TABLE system_social_client |
| 9531 | 9567 | ( |
| 9532 | 9568 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -9675,7 +9711,8 @@ GO |
| 9675 | 9711 | -- ---------------------------- |
| 9676 | 9712 | -- Table structure for system_social_user |
| 9677 | 9713 | -- ---------------------------- |
| 9678 | -DROP TABLE IF EXISTS system_social_user; | |
| 9714 | +DROP TABLE IF EXISTS system_social_user | |
| 9715 | +GO | |
| 9679 | 9716 | CREATE TABLE system_social_user |
| 9680 | 9717 | ( |
| 9681 | 9718 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -9818,7 +9855,8 @@ GO |
| 9818 | 9855 | -- ---------------------------- |
| 9819 | 9856 | -- Table structure for system_social_user_bind |
| 9820 | 9857 | -- ---------------------------- |
| 9821 | -DROP TABLE IF EXISTS system_social_user_bind; | |
| 9858 | +DROP TABLE IF EXISTS system_social_user_bind | |
| 9859 | +GO | |
| 9822 | 9860 | CREATE TABLE system_social_user_bind |
| 9823 | 9861 | ( |
| 9824 | 9862 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -9921,7 +9959,8 @@ GO |
| 9921 | 9959 | -- ---------------------------- |
| 9922 | 9960 | -- Table structure for system_tenant |
| 9923 | 9961 | -- ---------------------------- |
| 9924 | -DROP TABLE IF EXISTS system_tenant; | |
| 9962 | +DROP TABLE IF EXISTS system_tenant | |
| 9963 | +GO | |
| 9925 | 9964 | CREATE TABLE system_tenant |
| 9926 | 9965 | ( |
| 9927 | 9966 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -10076,7 +10115,8 @@ GO |
| 10076 | 10115 | -- ---------------------------- |
| 10077 | 10116 | -- Table structure for system_tenant_package |
| 10078 | 10117 | -- ---------------------------- |
| 10079 | -DROP TABLE IF EXISTS system_tenant_package; | |
| 10118 | +DROP TABLE IF EXISTS system_tenant_package | |
| 10119 | +GO | |
| 10080 | 10120 | CREATE TABLE system_tenant_package |
| 10081 | 10121 | ( |
| 10082 | 10122 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -10187,7 +10227,8 @@ GO |
| 10187 | 10227 | -- ---------------------------- |
| 10188 | 10228 | -- Table structure for system_user_post |
| 10189 | 10229 | -- ---------------------------- |
| 10190 | -DROP TABLE IF EXISTS system_user_post; | |
| 10230 | +DROP TABLE IF EXISTS system_user_post | |
| 10231 | +GO | |
| 10191 | 10232 | CREATE TABLE system_user_post |
| 10192 | 10233 | ( |
| 10193 | 10234 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -10304,7 +10345,8 @@ GO |
| 10304 | 10345 | -- ---------------------------- |
| 10305 | 10346 | -- Table structure for system_user_role |
| 10306 | 10347 | -- ---------------------------- |
| 10307 | -DROP TABLE IF EXISTS system_user_role; | |
| 10348 | +DROP TABLE IF EXISTS system_user_role | |
| 10349 | +GO | |
| 10308 | 10350 | CREATE TABLE system_user_role |
| 10309 | 10351 | ( |
| 10310 | 10352 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -10435,7 +10477,8 @@ GO |
| 10435 | 10477 | -- ---------------------------- |
| 10436 | 10478 | -- Table structure for system_users |
| 10437 | 10479 | -- ---------------------------- |
| 10438 | -DROP TABLE IF EXISTS system_users; | |
| 10480 | +DROP TABLE IF EXISTS system_users | |
| 10481 | +GO | |
| 10439 | 10482 | CREATE TABLE system_users |
| 10440 | 10483 | ( |
| 10441 | 10484 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -10656,7 +10699,8 @@ GO |
| 10656 | 10699 | -- ---------------------------- |
| 10657 | 10700 | -- Table structure for yudao_demo01_contact |
| 10658 | 10701 | -- ---------------------------- |
| 10659 | -DROP TABLE IF EXISTS yudao_demo01_contact; | |
| 10702 | +DROP TABLE IF EXISTS yudao_demo01_contact | |
| 10703 | +GO | |
| 10660 | 10704 | CREATE TABLE yudao_demo01_contact |
| 10661 | 10705 | ( |
| 10662 | 10706 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -10783,7 +10827,8 @@ GO |
| 10783 | 10827 | -- ---------------------------- |
| 10784 | 10828 | -- Table structure for yudao_demo02_category |
| 10785 | 10829 | -- ---------------------------- |
| 10786 | -DROP TABLE IF EXISTS yudao_demo02_category; | |
| 10830 | +DROP TABLE IF EXISTS yudao_demo02_category | |
| 10831 | +GO | |
| 10787 | 10832 | CREATE TABLE yudao_demo02_category |
| 10788 | 10833 | ( |
| 10789 | 10834 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -10896,7 +10941,8 @@ GO |
| 10896 | 10941 | -- ---------------------------- |
| 10897 | 10942 | -- Table structure for yudao_demo03_course |
| 10898 | 10943 | -- ---------------------------- |
| 10899 | -DROP TABLE IF EXISTS yudao_demo03_course; | |
| 10944 | +DROP TABLE IF EXISTS yudao_demo03_course | |
| 10945 | +GO | |
| 10900 | 10946 | CREATE TABLE yudao_demo03_course |
| 10901 | 10947 | ( |
| 10902 | 10948 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -11025,7 +11071,8 @@ GO |
| 11025 | 11071 | -- ---------------------------- |
| 11026 | 11072 | -- Table structure for yudao_demo03_grade |
| 11027 | 11073 | -- ---------------------------- |
| 11028 | -DROP TABLE IF EXISTS yudao_demo03_grade; | |
| 11074 | +DROP TABLE IF EXISTS yudao_demo03_grade | |
| 11075 | +GO | |
| 11029 | 11076 | CREATE TABLE yudao_demo03_grade |
| 11030 | 11077 | ( |
| 11031 | 11078 | id bigint NOT NULL PRIMARY KEY IDENTITY, |
| ... | ... | @@ -11140,7 +11187,8 @@ GO |
| 11140 | 11187 | -- ---------------------------- |
| 11141 | 11188 | -- Table structure for yudao_demo03_student |
| 11142 | 11189 | -- ---------------------------- |
| 11143 | -DROP TABLE IF EXISTS yudao_demo03_student; | |
| 11190 | +DROP TABLE IF EXISTS yudao_demo03_student | |
| 11191 | +GO | |
| 11144 | 11192 | CREATE TABLE yudao_demo03_student |
| 11145 | 11193 | ( |
| 11146 | 11194 | id bigint NOT NULL PRIMARY KEY IDENTITY, | ... | ... |
sql/tools/convertor.py
| ... | ... | @@ -562,7 +562,8 @@ class SQLServerConvertor(Convertor): |
| 562 | 562 | script = f"""-- ---------------------------- |
| 563 | 563 | -- Table structure for {table_name} |
| 564 | 564 | -- ---------------------------- |
| 565 | -DROP TABLE IF EXISTS {table_name}; | |
| 565 | +DROP TABLE IF EXISTS {table_name} | |
| 566 | +GO | |
| 566 | 567 | CREATE TABLE {table_name} ( |
| 567 | 568 | {filed_def_list} |
| 568 | 569 | ) |
| ... | ... | @@ -642,7 +643,6 @@ GO |
| 642 | 643 | def gen_dual(self) -> str: |
| 643 | 644 | return """DROP TABLE IF EXISTS dual |
| 644 | 645 | GO |
| 645 | - | |
| 646 | 646 | CREATE TABLE dual |
| 647 | 647 | ( |
| 648 | 648 | id int | ... | ... |