mirror of
https://github.com/MikroWizard/mikroman.git
synced 2025-07-24 20:54:37 +02:00
17 lines
391 B
Python
17 lines
391 B
Python
# 027_permissions.py
|
|
|
|
def migrate(migrator, database, fake=False, **kwargs):
|
|
|
|
|
|
migrator.sql("""CREATE TABLE task_results(
|
|
id serial PRIMARY KEY NOT NULL,
|
|
task_type text,
|
|
result text,
|
|
created timestamp not null default CURRENT_TIMESTAMP
|
|
)""")
|
|
|
|
|
|
def rollback(migrator, database, fake=False, **kwargs):
|
|
|
|
migrator.sql("""DROP TABLE task_results""")
|
|
|