测试sql

This commit is contained in:
Hankin 2024-07-27 15:37:23 +08:00
parent c6e8d97e58
commit 59cf4babc6
6 changed files with 8 additions and 26 deletions

23
.gitignore vendored
View File

@ -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

View File

@ -0,0 +1 @@
drop table if EXISTS ufutx_test;

View 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;

View File

@ -0,0 +1 @@
alter table ufutx_test drop column gender

View File

@ -0,0 +1 @@
alter table ufutx_test add column gender tinyint default 1 comment "性别"

View File

@ -1,3 +0,0 @@
# migrate
数据库表结构更新同步