3
0

upd(crm): test update for table rename

This commit is contained in:
Tit Petric
2018-11-24 19:49:35 +00:00
parent 7aff95096e
commit 556a61b914
3 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1,2 +1,2 @@
#!/bin/bash
touch $(date +%Y%m%d%H%M%S).sql
touch $(date +%Y%m%d%H%M%S).up.sql

View File

@@ -49,7 +49,7 @@ func TestMain(m *testing.M) {
// clean up tables
{
for _, name := range []string{"crm_module", "crm_module_form", "crm_content", "crm_content_column", "crm_page", "users"} {
for _, name := range []string{"crm_module", "crm_module_form", "crm_content", "crm_content_column", "crm_page", "sys_user"} {
_, err := db.Exec("truncate " + name)
if err != nil {
panic("Error when clearing " + name + ": " + err.Error())