forked from Hay1tsme/artemis
add arcade ip column
This commit is contained in:
parent
757fdc5c57
commit
2e277e7791
1
core/data/schema/versions/CORE_5_rollback.sql
Normal file
1
core/data/schema/versions/CORE_5_rollback.sql
Normal file
@ -0,0 +1 @@
|
|||||||
|
ALTER TABLE arcade DROP COLUMN 'ip';
|
1
core/data/schema/versions/CORE_6_upgrade.sql
Normal file
1
core/data/schema/versions/CORE_6_upgrade.sql
Normal file
@ -0,0 +1 @@
|
|||||||
|
ALTER TABLE arcade ADD ip varchar(39) NULL;
|
@ -56,10 +56,10 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
elif args.action == "upgrade" or args.action == "rollback":
|
elif args.action == "upgrade" or args.action == "rollback":
|
||||||
if args.version is None:
|
if args.version is None:
|
||||||
data.logger.warn("No version set, upgrading to latest")
|
data.logger.warning("No version set, upgrading to latest")
|
||||||
|
|
||||||
if args.game is None:
|
if args.game is None:
|
||||||
data.logger.warn("No game set, upgrading core schema")
|
data.logger.warning("No game set, upgrading core schema")
|
||||||
data.migrate_database(
|
data.migrate_database(
|
||||||
"CORE",
|
"CORE",
|
||||||
int(args.version) if args.version is not None else None,
|
int(args.version) if args.version is not None else None,
|
||||||
|
Loading…
Reference in New Issue
Block a user