Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore:full migrations test #273

Merged
merged 71 commits into from
Oct 23, 2023
Merged
Changes from 1 commit
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
263ccda
added a rough testcase that assures that migrations don't fail withou…
CommanderStorm Oct 10, 2023
7fe2da2
fixed a build error
CommanderStorm Oct 16, 2023
e5793e1
Merge branch 'main' into chore/migrations-test
CommanderStorm Oct 16, 2023
d48cad0
refactored files around
CommanderStorm Oct 16, 2023
844b8f5
added the ability to exit after migration
CommanderStorm Oct 16, 2023
cc6b084
fixed the testcase
CommanderStorm Oct 16, 2023
96755cb
made the action sleeps enough that the db gets its shit together
CommanderStorm Oct 16, 2023
790badd
linting fix
CommanderStorm Oct 16, 2023
ab4c85b
Merge branch 'main' into chore/migrations-test
CommanderStorm Oct 21, 2023
9a28017
tested a different way of communicating with the db
CommanderStorm Oct 22, 2023
41f4d1f
added a request for the docker logs after waiting
CommanderStorm Oct 22, 2023
1d7d37e
more logging
CommanderStorm Oct 22, 2023
e60f285
tested a different approach
CommanderStorm Oct 22, 2023
61e53f9
tested a different approach
CommanderStorm Oct 22, 2023
4f1611b
more debugging info
CommanderStorm Oct 22, 2023
be0f7f7
tested different config
CommanderStorm Oct 22, 2023
ba3d9c7
refactored the wait for db part and source-schema check
CommanderStorm Oct 22, 2023
5aa08e0
migrated the src schema to live in an migation
CommanderStorm Oct 22, 2023
ac86c0b
fixed formatting issue
CommanderStorm Oct 22, 2023
1456efb
fixed the migration not being used
CommanderStorm Oct 22, 2023
8a559af
linting
CommanderStorm Oct 22, 2023
a7258bb
tested different way of execing sql
CommanderStorm Oct 22, 2023
35e9224
tested even more different way of executing the source shema
CommanderStorm Oct 22, 2023
ff4d949
fixed executing empty statements
CommanderStorm Oct 22, 2023
b99e3ce
made sure only nessesary things are logged for `migrate20200000000000`
CommanderStorm Oct 22, 2023
592ee91
formatting
CommanderStorm Oct 22, 2023
30c348e
refactored the migrations to not depend on the TumDBMigrator struct
CommanderStorm Oct 22, 2023
7403693
renamed EXIT_AFTER_MIGRATION -> CI_EXIT_AFTER_MIGRATION
CommanderStorm Oct 22, 2023
aae3777
Merge branch 'main' into chore/migrations-test
CommanderStorm Oct 22, 2023
e7d8253
tested a different way of migrating the newsSource table
CommanderStorm Oct 22, 2023
ff76725
fixed another typo
CommanderStorm Oct 22, 2023
959503b
removed an automigration
CommanderStorm Oct 22, 2023
f4922e7
removed now obsolete docs
CommanderStorm Oct 22, 2023
908043a
removed the source schema from the docker-compose file to make runnin…
CommanderStorm Oct 22, 2023
f2942a3
Merge branch 'main' into chore/full-migrations-test
CommanderStorm Oct 22, 2023
99d126d
added all models to the migration
CommanderStorm Oct 22, 2023
de0729d
Merge branch 'main' into chore/full-migrations-test
CommanderStorm Oct 22, 2023
8ef8eda
fixed naming issues for the db models
CommanderStorm Oct 22, 2023
0a189ee
enabled the auto migration in the workflow
CommanderStorm Oct 22, 2023
8fbea93
Merge branch 'main' into chore/migrations-test
CommanderStorm Oct 22, 2023
3fe12b3
Merge branch 'main' into chore/migrations-test
CommanderStorm Oct 22, 2023
986adaf
Merge branch 'chore/migrations-test' into chore/full-migrations-test
CommanderStorm Oct 22, 2023
509b32c
Merge branch 'main' into chore/full-migrations-test
CommanderStorm Oct 22, 2023
0f0c4c3
removed model.IOSGrade
CommanderStorm Oct 22, 2023
589e528
tested a different way of defining Device.LastAccess
CommanderStorm Oct 22, 2023
cddf539
fixed the type of `Device.Developer`
CommanderStorm Oct 22, 2023
3034ab1
fixed the type of `Device.PkActive`
CommanderStorm Oct 22, 2023
77f8104
fixed the type of `NotificationType.Confirmation`
CommanderStorm Oct 22, 2023
77142af
added an mysqldump configuration
CommanderStorm Oct 22, 2023
6d9640d
added an mysqldump configuration
CommanderStorm Oct 22, 2023
ede64c8
tested different connection method
CommanderStorm Oct 22, 2023
d1a7c6c
switched to atlas for shema diffing
CommanderStorm Oct 22, 2023
ddfcdb7
tested different connection strings
CommanderStorm Oct 22, 2023
f39bdc8
added additional formatting
CommanderStorm Oct 22, 2023
18c1468
refactored the action
CommanderStorm Oct 23, 2023
de8569b
fixed a linting issue
CommanderStorm Oct 23, 2023
3d44fc1
updated the block
CommanderStorm Oct 23, 2023
bc1fc0f
added a concurrency setting
CommanderStorm Oct 23, 2023
cd7139e
test concurrecny
CommanderStorm Oct 23, 2023
14e7ebe
test if `wait for db` is nessesary
CommanderStorm Oct 23, 2023
fdc8c64
tested a different commenting mechanism
CommanderStorm Oct 23, 2023
87a0f7b
fixed linting issues
CommanderStorm Oct 23, 2023
59eed7e
fixed the name of the action
CommanderStorm Oct 23, 2023
a05ac8c
tested if the comment is edited
CommanderStorm Oct 23, 2023
8b2c3b0
plugged the diff_migrations to the commenting step
CommanderStorm Oct 23, 2023
d4c55c4
added an eof delimiter
CommanderStorm Oct 23, 2023
7f1ba3d
tested different delimiter mechanism
CommanderStorm Oct 23, 2023
a20ed02
tested a different formatting
CommanderStorm Oct 23, 2023
3ef038f
added a better diff
CommanderStorm Oct 23, 2023
26034dd
tested if the formatting works
CommanderStorm Oct 23, 2023
5e05f62
reformatted the message
CommanderStorm Oct 23, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
tested a different way of defining Device.LastAccess
  • Loading branch information
CommanderStorm committed Oct 22, 2023
commit 589e528b132f182e126ddbbd33059185dd8d85de
2 changes: 1 addition & 1 deletion server/model/device.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type Device struct {
Member null.Int `gorm:"column:member;type:int;" json:"member"`
UUID string `gorm:"column:uuid;type:varchar(50);" json:"uuid"`
Created null.Time `gorm:"column:created;type:timestamp;" json:"created"`
LastAccess time.Time `gorm:"column:lastAccess;type:timestamp;default:0000-00-00 00:00:00;" json:"last_access"`
LastAccess time.Time `gorm:"column:lastAccess;type:timestamp;default:'0000-00-00 00:00:00';" json:"last_access"`
LastAPI string `gorm:"column:lastApi;type:text;size:16777215;" json:"last_api"`
Developer string `gorm:"column:developer;type:char;size:5;default:false;" json:"developer"`
OsVersion string `gorm:"column:osVersion;type:text;size:16777215;" json:"os_version"`
Expand Down
Loading