Commit 6dd4668 1 parent 2b74b50 commit 6dd4668 Copy full SHA for 6dd4668
File tree 5 files changed +7
-2
lines changed
5 files changed +7
-2
lines changed Original file line number Diff line number Diff line change
1
+ //go:build tools
1
2
// +build tools
2
3
3
4
package main
Original file line number Diff line number Diff line change
1
+ //go:build tools
1
2
// +build tools
2
3
3
4
package main
Original file line number Diff line number Diff line change 2
2
// データベースに新たなテーブルの追加や、既にあるテーブルのカラムの型の変更などのスキーマの改変を行う場合、必ずその改変処理(SQLクエリ)を全てここに記述してください。
3
3
// サーバー起動時に自動的にマイグレーションが実行されます。
4
4
//
5
- // Instruction 記述方法
5
+ // # Instruction 記述方法
6
6
//
7
7
// 既にv**.goに記述されているように、IDをインクリメントして*gormigrate.Migrationを返す関数を生成し、current.goにあるMigrationsに実装したマイグレーションを追加してください。
8
8
// 更に、全てのマイグレーションを適用後の最新のデータベーススキーマに関する情報を、AllTablesと対応する構造体のタグを変更することによって記述してください。
Original file line number Diff line number Diff line change 31
31
cNotFound = uuid .Must (uuid .FromString ("44bf0189-e3d5-4946-92e7-a196a2a94f98" ))
32
32
)
33
33
34
- /* makeTestChannelTree
34
+ /*
35
+ makeTestChannelTree
36
+
35
37
a : 6fd36038-dd44-4ac1-bec6-a8a997be6969
36
38
├ b : 390ef0d6-8db2-46c6-afac-4592cab87973
37
39
│ ├ c : 85f7bdb4-ba6b-4bfa-9115-b9dd8fc4c7d1
Original file line number Diff line number Diff line change
1
+ //go:build tools
1
2
// +build tools
2
3
3
4
package main
You can’t perform that action at this time.
0 commit comments