测试sql
This commit is contained in:
parent
c6e8d97e58
commit
59cf4babc6
23
.gitignore
vendored
23
.gitignore
vendored
@ -1,23 +0,0 @@
|
|||||||
# ---> Go
|
|
||||||
# If you prefer the allow list template instead of the deny list, see community template:
|
|
||||||
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
|
|
||||||
#
|
|
||||||
# Binaries for programs and plugins
|
|
||||||
*.exe
|
|
||||||
*.exe~
|
|
||||||
*.dll
|
|
||||||
*.so
|
|
||||||
*.dylib
|
|
||||||
|
|
||||||
# Test binary, built with `go test -c`
|
|
||||||
*.test
|
|
||||||
|
|
||||||
# Output of the go coverage tool, specifically when used with LiteIDE
|
|
||||||
*.out
|
|
||||||
|
|
||||||
# Dependency directories (remove the comment below to include it)
|
|
||||||
# vendor/
|
|
||||||
|
|
||||||
# Go workspace file
|
|
||||||
go.work
|
|
||||||
|
|
1
1722052698_create_test_table.down.sql
Normal file
1
1722052698_create_test_table.down.sql
Normal file
@ -0,0 +1 @@
|
|||||||
|
drop table if EXISTS ufutx_test;
|
5
1722052698_create_test_table.up.sql
Normal file
5
1722052698_create_test_table.up.sql
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
create table if not EXISTS ufutx_test (
|
||||||
|
id int(10) unsigned not null auto_increment,
|
||||||
|
name varchar(100) not null comment "姓名",
|
||||||
|
primary key(id)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
1
1722060174_table_add_gender.down.sql
Normal file
1
1722060174_table_add_gender.down.sql
Normal file
@ -0,0 +1 @@
|
|||||||
|
alter table ufutx_test drop column gender
|
1
1722060174_table_add_gender.up.sql
Normal file
1
1722060174_table_add_gender.up.sql
Normal file
@ -0,0 +1 @@
|
|||||||
|
alter table ufutx_test add column gender tinyint default 1 comment "性别"
|
Loading…
Reference in New Issue
Block a user