Plume/migrations/sqlite
Baptiste Gelez 61b6ceed92
Add some constraint at database level (#342)
* Add some constraint at database level

Fixes #79 and should fix #201 and #113 as well

* Fix tests

Delete duplicated data before adding constraints (only with Postgres, there is no way to do it with Sqlite with complex constraints like the one we are using)

Remove the constraint on media path

* We don't need to drop the media unique constraint anymore

Because we deleted it
2018-12-09 18:44:26 +01:00
..
2018-04-22-093322_create_instances align types between sqlite & postgres 2018-09-30 14:13:53 +02:00
2018-04-22-151330_create_user align types between sqlite & postgres 2018-09-30 14:13:53 +02:00
2018-04-23-101717_create_blogs align types between sqlite & postgres 2018-09-30 14:13:53 +02:00
2018-04-23-111655_create_blog_authors align types between sqlite & postgres 2018-09-30 14:13:53 +02:00
2018-04-23-132822_create_posts align types between sqlite & postgres 2018-09-30 14:13:53 +02:00
2018-04-23-142746_create_post_authors align types between sqlite & postgres 2018-09-30 14:13:53 +02:00
2018-05-01-124607_create_follow align types between sqlite & postgres 2018-09-30 14:13:53 +02:00
2018-05-09-192013_create_comments align types between sqlite & postgres 2018-09-30 14:13:53 +02:00
2018-05-10-154336_create_likes Introduce features to choose between SQlite or Postgres 2018-09-30 14:13:54 +02:00
2018-05-13-122311_create_notifications align types between sqlite & postgres 2018-09-30 14:13:53 +02:00
2018-05-19-091428_create_reshares align types between sqlite & postgres 2018-09-30 14:13:53 +02:00
2018-06-20-175532_create_mentions align types between sqlite & postgres 2018-09-30 14:13:53 +02:00
2018-09-02-111458_create_medias align types between sqlite & postgres 2018-09-30 14:13:53 +02:00
2018-09-05-174106_create_tags align types between sqlite & postgres 2018-09-30 14:13:53 +02:00
2018-10-06-161156_change_default_license Change default license to CC-BY-SA 2018-10-06 18:19:45 +01:00
2018-10-19-165450_create_apps Add a model for external apps 2018-10-30 18:13:49 +01:00
2018-10-20-164036_fix_hastag_typo Add support for hashtag on user interface 2018-10-20 19:27:49 +02:00
2018-10-21-163241_create_api_token Add an ApiToken model, and an endpoint to get one 2018-10-30 18:13:49 +01:00
2018-10-30-151545_add_post_cover Add a cover field to posts 2018-10-31 15:07:40 +01:00
2018-12-08-182930_constraints Add some constraint at database level (#342) 2018-12-09 18:44:26 +01:00