Add files via upload
This commit is contained in:
parent
762ac58daf
commit
aa560fd89d
17 changed files with 2948 additions and 2 deletions
28
migrations.py
Normal file
28
migrations.py
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
# The migration file is like a blockchain, never edit only add!
|
||||
|
||||
async def m001_initial(db):
|
||||
"""
|
||||
Initial templates table.
|
||||
"""
|
||||
await db.execute(
|
||||
"""
|
||||
CREATE TABLE temp.temp (
|
||||
id TEXT PRIMARY KEY,
|
||||
wallet TEXT NOT NULL,
|
||||
name TEXT NOT NULL
|
||||
);
|
||||
"""
|
||||
)
|
||||
|
||||
|
||||
# Here we are adding an extra field to the database
|
||||
|
||||
async def m002_addtip_wallet(db):
|
||||
"""
|
||||
Add total to templates table
|
||||
"""
|
||||
await db.execute(
|
||||
"""
|
||||
ALTER TABLE temp.temp ADD total withdrawlimit INTEGER DEFAULT 0,;
|
||||
"""
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue