mirror of
https://github.com/discourse/discourse.git
synced 2026-08-11 05:25:16 -05:00
Replacing default brown category color
This commit is contained in:
@@ -2,7 +2,7 @@ class CreateCategories < ActiveRecord::Migration[4.2]
|
||||
def up
|
||||
create_table :categories do |t|
|
||||
t.string :name, limit: 50, null: false
|
||||
t.string :color, limit: 6, null: false, default: 'AB9364'
|
||||
t.string :color, limit: 6, null: false, default: '0088CC'
|
||||
t.integer :forum_thread_id, null: true
|
||||
t.integer :top1_forum_thread_id, null: true
|
||||
t.integer :top2_forum_thread_id, null: true
|
||||
|
||||
@@ -9,7 +9,7 @@ class AddUncategorizedCategory < ActiveRecord::Migration[4.2]
|
||||
|
||||
result = execute "INSERT INTO categories
|
||||
(name,color,slug,description,text_color, user_id, created_at, updated_at, position)
|
||||
VALUES ('#{name}', 'AB9364', 'uncategorized', '', 'FFFFFF', -1, now(), now(), 0 )
|
||||
VALUES ('#{name}', '0088CC', 'uncategorized', '', 'FFFFFF', -1, now(), now(), 0 )
|
||||
RETURNING id
|
||||
"
|
||||
category_id = result[0]["id"].to_i
|
||||
|
||||
@@ -16,7 +16,7 @@ class AddLoungeCategory < ActiveRecord::Migration[4.2]
|
||||
|
||||
result = DB.query_single "INSERT INTO categories
|
||||
(name, color, text_color, created_at, updated_at, user_id, slug, description, read_restricted, position)
|
||||
VALUES (:name, 'EEEEEE', '652D90', now(), now(), -1, '', :description, true, 3)
|
||||
VALUES (:name, 'A461EF', '652D90', now(), now(), -1, '', :description, true, 3)
|
||||
RETURNING id", name: name, description: description
|
||||
|
||||
category_id = result.first.to_i
|
||||
|
||||
@@ -12,7 +12,7 @@ class AddStaffCategory < ActiveRecord::Migration[4.2]
|
||||
|
||||
result = DB.query_single "INSERT INTO categories
|
||||
(name, color, text_color, created_at, updated_at, user_id, slug, description, read_restricted, position)
|
||||
VALUES (:name, '283890', 'FFFFFF', now(), now(), -1, '', :description, true, 2)
|
||||
VALUES (:name, 'E45735', 'FFFFFF', now(), now(), -1, '', :description, true, 2)
|
||||
RETURNING id", name: name, description: description
|
||||
|
||||
category_id = result.first.to_i
|
||||
|
||||
Reference in New Issue
Block a user