Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
add a migration to drop website tables
Browse files Browse the repository at this point in the history
This migration is executed when migrating ophasebase.
It drops all tables previously defined by the website app,
if they exist.
  • Loading branch information
jlauinger committed Oct 5, 2018
1 parent 8d08e8a commit 4de67e4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ophasebase/migrations/0008_remove_website_models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Generated by Django 2.0.9 on 2018-10-05 19:23

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('ophasebase', '0007_auto_20170215_1416'),
]
operations = [
migrations.RunSQL("""DROP TABLE IF EXISTS `website_categorydetails`;"""),
migrations.RunSQL("""DROP TABLE IF EXISTS `website_settings`;"""),
migrations.RunSQL("""DROP TABLE IF EXISTS `website_oinforz`;"""),
]

0 comments on commit 4de67e4

Please sign in to comment.