forked from 3wordchant/capsul-flask
Adjust pricing according to standard model
This commit is contained in:
parent
e287c00a5d
commit
42b295dc0a
@ -40,7 +40,7 @@ def init_app(app):
|
|||||||
hasSchemaVersionTable = False
|
hasSchemaVersionTable = False
|
||||||
actionWasTaken = False
|
actionWasTaken = False
|
||||||
schemaVersion = 0
|
schemaVersion = 0
|
||||||
desiredSchemaVersion = 6
|
desiredSchemaVersion = 7
|
||||||
|
|
||||||
cursor = connection.cursor()
|
cursor = connection.cursor()
|
||||||
|
|
||||||
|
15
capsulflask/schema_migrations/07_down_price_adjustment.sql
Normal file
15
capsulflask/schema_migrations/07_down_price_adjustment.sql
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
UPDATE vm_sizes SET dollars_per_month = '5.33' WHERE id = 'f1-xs';
|
||||||
|
UPDATE vm_sizes SET dollars_per_month = '7.16' WHERE id = 'f1-s';
|
||||||
|
UPDATE vm_sizes SET dollars_per_month = '8.92' WHERE id = 'f1-m';
|
||||||
|
UPDATE vm_sizes SET dollars_per_month = '16.16' WHERE id = 'f1-l';
|
||||||
|
UPDATE vm_sizes SET dollars_per_month = '29.66' WHERE id = 'f1-x';
|
||||||
|
UPDATE vm_sizes SET dollars_per_month = '57.58' WHERE id = 'f1-xx';
|
||||||
|
|
||||||
|
UPDATE vm_sizes SET id = 'f1-xxx' WHERE id = 'f1-xx';
|
||||||
|
UPDATE vm_sizes SET id = 'f1-xx' WHERE id = 'f1-x';
|
||||||
|
UPDATE vm_sizes SET id = 'f1-x' WHERE id = 'f1-l';
|
||||||
|
UPDATE vm_sizes SET id = 'f1-l' WHERE id = 'f1-m';
|
||||||
|
UPDATE vm_sizes SET id = 'f1-m' WHERE id = 'f1-s';
|
||||||
|
UPDATE vm_sizes SET id = 'f1-s' WHERE id = 'f1-xs';
|
||||||
|
|
||||||
|
UPDATE schemaversion SET version = 6;
|
15
capsulflask/schema_migrations/07_up_price_adjustment.sql
Normal file
15
capsulflask/schema_migrations/07_up_price_adjustment.sql
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
UPDATE vm_sizes SET id = 'f1-xs' WHERE id = 'f1-s';
|
||||||
|
UPDATE vm_sizes SET id = 'f1-s' WHERE id = 'f1-m';
|
||||||
|
UPDATE vm_sizes SET id = 'f1-m' WHERE id = 'f1-l';
|
||||||
|
UPDATE vm_sizes SET id = 'f1-l' WHERE id = 'f1-x';
|
||||||
|
UPDATE vm_sizes SET id = 'f1-x' WHERE id = 'f1-xx';
|
||||||
|
UPDATE vm_sizes SET id = 'f1-xx' WHERE id = 'f1-xxx';
|
||||||
|
|
||||||
|
UPDATE vm_sizes SET dollars_per_month = '5.00' WHERE id = 'f1-xs';
|
||||||
|
UPDATE vm_sizes SET dollars_per_month = '7.50' WHERE id = 'f1-s';
|
||||||
|
UPDATE vm_sizes SET dollars_per_month = '12.50' WHERE id = 'f1-m';
|
||||||
|
UPDATE vm_sizes SET dollars_per_month = '20.00' WHERE id = 'f1-l';
|
||||||
|
UPDATE vm_sizes SET dollars_per_month = '25.00' WHERE id = 'f1-x';
|
||||||
|
UPDATE vm_sizes SET dollars_per_month = '47.50' WHERE id = 'f1-xx';
|
||||||
|
|
||||||
|
UPDATE schemaversion SET version = 7;
|
Loading…
Reference in New Issue
Block a user