feat: the launch reset keeps the order numbering and clears the folders (0.11)
The existing launch_reset now also empties the Kanban flow folders, keeps Estampas/, and no longer restarts orders.number: DTF-1…DTF-15 already exist in Tiny. It still refuses real money, counts first and needs APAGAR.
This commit is contained in:
@@ -46,11 +46,8 @@ def main():
|
||||
c.execute(sql.SQL('GRANT USAGE ON SCHEMA dtf_local TO {}').format(sql.Identifier(role)))
|
||||
c.execute(sql.SQL('GRANT SELECT,INSERT,UPDATE,DELETE ON ALL TABLES IN SCHEMA dtf_local TO {}').format(sql.Identifier(role)))
|
||||
c.execute(sql.SQL('GRANT USAGE,SELECT ON ALL SEQUENCES IN SCHEMA dtf_local TO {}').format(sql.Identifier(role)))
|
||||
# ops.launch_reset starts the order numbers again at #1 (setval), once
|
||||
# the test orders are gone; nothing else may change a sequence.
|
||||
numbers = c.execute("SELECT pg_get_serial_sequence('dtf_local.orders','number')").fetchone()[0]
|
||||
c.execute(sql.SQL('GRANT UPDATE ON SEQUENCE {} TO {}').format(
|
||||
sql.Identifier(*numbers.split('.', 1)), sql.Identifier(role)))
|
||||
# The order identity sequence is never reset: DTF-1…DTF-15 already
|
||||
# exist as Tiny order numbers (Dropstar, 2026-11-05).
|
||||
# Turn the configured credential into a real account so an existing
|
||||
# deployment keeps logging in exactly as before. Inserts only when that
|
||||
# email is absent, so a password changed with local.operators is never
|
||||
|
||||
Reference in New Issue
Block a user