Drop schemas¶
- Schemas are not typically dropped in a production workflow with real data in it.
- At the developmental phase, it might be required for the table redesign.
- When dropping all schemas is needed, the following is the dependency order.
Change into the parent directory to find the dj_local_conf.json file.
In [ ]:
Copied!
import os
if os.path.basename(os.getcwd()) == "notebooks":
os.chdir("..")
import os
if os.path.basename(os.getcwd()) == "notebooks":
os.chdir("..")
In [ ]:
Copied!
from workflow_miniscope.pipeline import lab, subject, session, miniscope
from workflow_miniscope.pipeline import lab, subject, session, miniscope
In [ ]:
Copied!
miniscope.schema.drop()
session.schema.drop()
subject.schema.drop()
lab.schema.drop()
miniscope.schema.drop()
session.schema.drop()
subject.schema.drop()
lab.schema.drop()