Commit Graph

20 Commits

Author SHA1 Message Date
Glowing Blue
93d373f066 Added created_at to post_likes table (#28) 2021-05-11 15:23:35 -04:00
Franz Liedke
af13438c76 Apply fixes from StyleCI 2019-11-29 23:02:05 +00:00
Franz Liedke
d515b16303 Depend on Laravel 5.7 for correct index names 2019-02-03 20:51:23 +01:00
Franz Liedke
732432d00b Migrations: Fix dropping foreign keys
Passing an array to dropForeign does not mean dropping multiple indices,
but rather dropping a key on multiple tables.

Passing a string means that this string will be interpreted as index
name, not as name of the indexed column. Passing an array with one
string is therefore correct, in order to benefit from automatic index
name generation.
2018-11-30 14:04:26 +01:00
Toby Zerner
a54f1e2bc5 Fix index names in migrations
This can be reverted when we upgrade to Laravel 5.7.
2018-11-27 22:33:32 +10:30
Toby Zerner
74fac8c206 Database changes (#16)
* Add foreign keys

* Rename table

* Use whereColumn

* Update core attribute names
2018-09-16 20:49:51 +02:00
Charlie
f17f789878 Update for beta 8 (#12)
* Update for beta 8

* Make StyleCI happy
2017-09-01 16:37:48 +09:30
Toby Zerner
1f258c362a Use new migration helper 2017-07-22 12:19:29 +09:30
Toby Zerner
d1872217ff Apply fixes from StyleCI
[ci skip] [skip ci]
2016-11-29 05:29:40 +00:00
Franz Liedke
95ea40a7c4 Do not use model classes in the migrations
The model classes encapsulate knowledge about the database that
may change. That knowledge may be table names, or the value of
constants (such as `Group::MEMBER_ID` in this case).

Models may even disappear after a while due to refactorings.

In all these cases, this migration would break. Thus, we use
Laravel's query builder features which makes building queries
almost as easy as using the model - but correct in all cases. :-)
2016-03-20 22:40:42 +09:00
Franz Liedke
af76eff949 Use new shortcuts for migrations 2016-03-04 01:11:39 +09:00
Franz Liedke
5102a0d97b Use new migration format 2016-02-24 23:12:49 +09:00
Toby Zerner
eee3f9ca92 Update for composer branch 2015-10-11 15:30:19 +10:30
Toby Zerner
1f8ccc8674 Namespace migrations 2015-09-17 09:10:05 +09:30
Toby Zerner
f8b96c6ca9 Prevent MassAssignmentException 2015-09-06 10:57:17 +09:30
Toby Zerner
f02d0ec602 Add LICENSE information 2015-09-04 12:32:27 +09:30
Toby Zerner
fc43fd8fb4 Allow members to like posts by default and add setting
closes flarum/core#344
2015-09-04 12:06:37 +09:30
Toby Zerner
21ad0d8203 Update migrations 2015-08-14 12:55:06 +09:30
Toby Zerner
6596fb4734 Fix migration 2015-06-23 11:01:25 +09:30
Toby Zerner
e57eb5a14f Initial commit 2015-06-23 10:25:24 +09:30