Added bare migrations
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
1f17433f64
commit
f04c597c11
|
@ -15,3 +15,23 @@
|
|||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
package migration
|
||||
|
||||
import (
|
||||
"github.com/go-xorm/xorm"
|
||||
"src.techknowlogick.com/xormigrate"
|
||||
)
|
||||
|
||||
func init() {
|
||||
migrations = append(migrations, &xormigrate.Migration{
|
||||
ID: "20190324205606",
|
||||
Description: "Lorem Ipsum",
|
||||
Migrate: func(tx *xorm.Engine) error {
|
||||
|
||||
return nil
|
||||
},
|
||||
Rollback: func(tx *xorm.Engine) error {
|
||||
|
||||
return nil
|
||||
},
|
||||
})
|
||||
}
|
||||
|
|
|
@ -16,7 +16,10 @@
|
|||
|
||||
package migration
|
||||
|
||||
import "src.techknowlogick.com/xormigrate"
|
||||
import (
|
||||
"sort"
|
||||
"src.techknowlogick.com/xormigrate"
|
||||
)
|
||||
|
||||
// You can get the id string for new migrations by running `date +%Y%m%d%H%M%S` on a unix system.
|
||||
|
||||
|
@ -25,64 +28,68 @@ var migrations []*xormigrate.Migration
|
|||
func Migrate() {
|
||||
// Because init() does not guarantee the order in which these are added to the slice,
|
||||
// we need to sort them to ensure that they are in order
|
||||
sort.Slice(migrations, func(i, j int) bool {
|
||||
return migrations[i].ID < migrations[j].ID
|
||||
})
|
||||
|
||||
/*
|
||||
XORM logs from try.vikunja.io:
|
||||
XORM logs from try.vikunja.io:
|
||||
|
||||
Table users Column email db default is 'NULL', struct default is
|
||||
Table users Column is_active db default is NULL, struct default is
|
||||
Table users Column password_reset_token db default is 'NULL', struct default is
|
||||
Table users Column email_confirm_token db default is 'NULL', struct default is
|
||||
Table users Column created db default is NULL, struct default is
|
||||
Table users Column updated db default is NULL, struct default is
|
||||
Table list Column title db default is 'NULL', struct default is
|
||||
Table list Column description db default is 'NULL', struct default is
|
||||
Table list Column owner_id db default is NULL, struct default is
|
||||
Table list Column namespace_id db default is NULL, struct default is
|
||||
Table list Column created db default is NULL, struct default is
|
||||
Table list Column updated db default is NULL, struct default is
|
||||
Table tasks Column text db default is 'NULL', struct default is
|
||||
Table tasks Column description db default is 'NULL', struct default is
|
||||
Table tasks Column done db default is NULL, struct default is
|
||||
Table tasks Column due_date_unix db default is NULL, struct default is
|
||||
Table tasks Column reminders_unix db default is 'NULL', struct default is
|
||||
Table tasks Column created_by_id db default is NULL, struct default is
|
||||
Table tasks Column list_id db default is NULL, struct default is
|
||||
Table tasks Column repeat_after db default is NULL, struct default is
|
||||
Table tasks Column parent_task_id db default is NULL, struct default is
|
||||
Table tasks Column priority db default is NULL, struct default is
|
||||
Table tasks Column start_date_unix db default is NULL, struct default is
|
||||
Table tasks Column end_date_unix db default is NULL, struct default is
|
||||
Table tasks Column created db default is NULL, struct default is
|
||||
Table tasks Column updated db default is NULL, struct default is
|
||||
Table teams Column description db default is 'NULL', struct default is
|
||||
Table teams Column created db default is NULL, struct default is
|
||||
Table teams Column updated db default is NULL, struct default is
|
||||
Table team_members Column admin db default is NULL, struct default is
|
||||
Table team_members Column created db default is NULL, struct default is
|
||||
Table team_list Column right db default is NULL, struct default is
|
||||
Table team_list Column created db default is NULL, struct default is
|
||||
Table team_list Column updated db default is NULL, struct default is
|
||||
Table team_namespaces Column right db default is NULL, struct default is
|
||||
Table team_namespaces Column created db default is NULL, struct default is
|
||||
Table team_namespaces Column updated db default is NULL, struct default is
|
||||
Table namespaces Column name db default is 'NULL', struct default is
|
||||
Table namespaces Column description db default is 'NULL', struct default is
|
||||
Table namespaces Column created db default is NULL, struct default is
|
||||
Table namespaces Column updated db default is NULL, struct default is
|
||||
Table users_list Column right db default is NULL, struct default is
|
||||
Table users_list Column created db default is NULL, struct default is
|
||||
Table users_list Column updated db default is NULL, struct default is
|
||||
Table users_namespace Column right db default is NULL, struct default is
|
||||
Table users_namespace Column created db default is NULL, struct default is
|
||||
Table users_namespace Column updated db default is NULL, struct default is
|
||||
Table task_assignees Column created db default is NULL, struct default is
|
||||
Table labels Column description db default is 'NULL', struct default is
|
||||
Table labels Column hex_color db default is 'NULL', struct default is
|
||||
Table labels Column created db default is NULL, struct default is
|
||||
Table labels Column updated db default is NULL, struct default is
|
||||
Table label_task Column created db default is NULL, struct default is
|
||||
Table tasks has column reminder_unix but struct has not related field
|
||||
Table team_members has column updated but struct has not related field
|
||||
Table users Column email db default is 'NULL', struct default is
|
||||
Table users Column is_active db default is NULL, struct default is
|
||||
Table users Column password_reset_token db default is 'NULL', struct default is
|
||||
Table users Column email_confirm_token db default is 'NULL', struct default is
|
||||
Table users Column created db default is NULL, struct default is
|
||||
Table users Column updated db default is NULL, struct default is
|
||||
Table list Column title db default is 'NULL', struct default is
|
||||
Table list Column description db default is 'NULL', struct default is
|
||||
Table list Column owner_id db default is NULL, struct default is
|
||||
Table list Column namespace_id db default is NULL, struct default is
|
||||
Table list Column created db default is NULL, struct default is
|
||||
Table list Column updated db default is NULL, struct default is
|
||||
Table tasks Column text db default is 'NULL', struct default is
|
||||
Table tasks Column description db default is 'NULL', struct default is
|
||||
Table tasks Column done db default is NULL, struct default is
|
||||
Table tasks Column due_date_unix db default is NULL, struct default is
|
||||
Table tasks Column reminders_unix db default is 'NULL', struct default is
|
||||
Table tasks Column created_by_id db default is NULL, struct default is
|
||||
Table tasks Column list_id db default is NULL, struct default is
|
||||
Table tasks Column repeat_after db default is NULL, struct default is
|
||||
Table tasks Column parent_task_id db default is NULL, struct default is
|
||||
Table tasks Column priority db default is NULL, struct default is
|
||||
Table tasks Column start_date_unix db default is NULL, struct default is
|
||||
Table tasks Column end_date_unix db default is NULL, struct default is
|
||||
Table tasks Column created db default is NULL, struct default is
|
||||
Table tasks Column updated db default is NULL, struct default is
|
||||
Table teams Column description db default is 'NULL', struct default is
|
||||
Table teams Column created db default is NULL, struct default is
|
||||
Table teams Column updated db default is NULL, struct default is
|
||||
Table team_members Column admin db default is NULL, struct default is
|
||||
Table team_members Column created db default is NULL, struct default is
|
||||
Table team_list Column right db default is NULL, struct default is
|
||||
Table team_list Column created db default is NULL, struct default is
|
||||
Table team_list Column updated db default is NULL, struct default is
|
||||
Table team_namespaces Column right db default is NULL, struct default is
|
||||
Table team_namespaces Column created db default is NULL, struct default is
|
||||
Table team_namespaces Column updated db default is NULL, struct default is
|
||||
Table namespaces Column name db default is 'NULL', struct default is
|
||||
Table namespaces Column description db default is 'NULL', struct default is
|
||||
Table namespaces Column created db default is NULL, struct default is
|
||||
Table namespaces Column updated db default is NULL, struct default is
|
||||
Table users_list Column right db default is NULL, struct default is
|
||||
Table users_list Column created db default is NULL, struct default is
|
||||
Table users_list Column updated db default is NULL, struct default is
|
||||
Table users_namespace Column right db default is NULL, struct default is
|
||||
Table users_namespace Column created db default is NULL, struct default is
|
||||
Table users_namespace Column updated db default is NULL, struct default is
|
||||
Table task_assignees Column created db default is NULL, struct default is
|
||||
Table labels Column description db default is 'NULL', struct default isdfdfsd
|
||||
Table labels Column hex_color db default is 'NULL', struct default is
|
||||
Table labels Column created db default is NULL, struct default is
|
||||
Table labels Column updated db default is NULL, struct default is
|
||||
Table label_task Column created db default is NULL, struct default is
|
||||
|
||||
Table tasks has column reminder_unix but struct has not related field
|
||||
Table team_members has column updated but struct has not related field
|
||||
*/
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue