Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
Add relax_course_name migration (#198) (#199)
Browse files Browse the repository at this point in the history
* Add relax_course_name migration

* Reorder steps
  • Loading branch information
ssciolla authored Jun 18, 2020
1 parent 0969b05 commit 08cc9d0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions db/migrations/0023.relax_course_name.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#
# file: migrations/0023.relax_course_name.py
#
from yoyo import step

steps = [
step('''
ALTER TABLE course
DROP INDEX name;
'''),
step('''
ALTER TABLE course
MODIFY
name VARCHAR(256) NOT NULL;
''')
]

0 comments on commit 08cc9d0

Please sign in to comment.