Commit Graph

17 Commits

Author SHA1 Message Date
Franz Liedke
4ec12da827 Fix down migration
Refs #18.
2020-02-07 11:55:52 +01:00
Ian Morland
4344f71d99 Flag improvements/tweaks (#18)
* Option to allow users to flag their own post
* Increase size of "Flag Post" modal
* Allow optional reason detail for offtopic, inappropriate and spam reasons
* For other reasons, detail text is now required
* Switch to column type "text" to allow more details in reason
2020-02-07 11:23:10 +01:00
Franz Liedke
e64ca03985 Apply fixes from StyleCI 2019-11-29 23:02:02 +00:00
Daniël Klabbers
b20d590289 revert the fix index names logic, preparing for illuminate 5.7 2019-01-15 21:03:12 +01:00
Franz Liedke
ae3d1f5f5f 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:12 +01:00
Toby Zerner
2722a0f2c5 Fix index names in migrations
This can be reverted when we upgrade to Laravel 5.7.
2018-11-27 22:33:21 +10:30
Toby Zerner
6e04891ef6 Add database indices. ref flarum/core#127 (#16) 2018-09-24 23:49:46 +02:00
Toby Zerner
ec60fed381 Database changes (#15)
* Implement database changes

* Split foreign keys into their own migration

* Use whereColumn

* Rename flag.time

* Rename forum.flagCount

* Rename forum.newFlagCount
2018-09-16 20:49:41 +02:00
Franz Liedke
494f953ace Update namespaces for beta 8
Refs flarum/core#1235.
2017-10-01 19:56:38 +02:00
Toby Zerner
3bca855696 Add default permissions 2017-07-22 12:20:24 +09:30
Toby Zerner
1a85493f19 Apply fixes from StyleCI
[ci skip] [skip ci]
2016-11-29 05:29:39 +00:00
Franz Liedke
badd2abff4 Use new shortcuts for migrations 2016-03-04 01:11:25 +09:00
Franz Liedke
e62dd6a3a1 Use new migration format 2016-02-24 23:12:36 +09:00
Toby Zerner
5f9d45c4ab Update for composer branch 2015-10-11 18:51:25 +10:30
Toby Zerner
a1e01938ef Rename to Flags, tweak flag controls
- Display post "destructiveControls" in flag instead of custom buttons
- Make flags more versatile/extensible
- Delete associated flags when a post is deleted

Uninstall the Reports extension before installing.
2015-09-22 18:14:33 +09:30
Toby Zerner
14884928a8 Namespace migrations 2015-09-17 09:09:21 +09:30
Toby Zerner
cb6347ef6a Initial commit 2015-09-04 13:26:51 +09:30