-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add module gallery * Temporay switch term customizer to alt repo * Bump gallery --------- Co-authored-by: Pauline Bessoles <[email protected]>
- Loading branch information
1 parent
39fffd4
commit fcbf592
Showing
7 changed files
with
75 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
db/migrate/20230612152043_create_decidim_gallery_gallery_items.decidim_gallery.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# frozen_string_literal: true | ||
|
||
# This migration comes from decidim_gallery (originally 20211019215121) | ||
|
||
class CreateDecidimGalleryGalleryItems < ActiveRecord::Migration[6.0] | ||
def change | ||
create_table :decidim_gallery_gallery_items do |t| | ||
t.jsonb :title | ||
t.references :decidim_component, index: true | ||
|
||
t.string :decidim_author_type, null: false | ||
t.integer :decidim_author_id, null: false | ||
t.integer :decidim_user_group_id | ||
t.datetime :published_at | ||
t.jsonb :data, default: {} | ||
t.integer :weight, default: 0 | ||
|
||
t.timestamps | ||
end | ||
add_index :decidim_gallery_gallery_items, | ||
[:decidim_author_id, :decidim_author_type], | ||
name: "index_decidim_gallery_gallery_items_on_decidim_author" | ||
add_index :decidim_gallery_gallery_items, :published_at | ||
add_index :decidim_gallery_gallery_items, :decidim_user_group_id | ||
end | ||
end |
9 changes: 9 additions & 0 deletions
9
db/migrate/20230612152044_add_gallery_id_to_decidim_static_pages.decidim_gallery.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# frozen_string_literal: true | ||
|
||
# This migration comes from decidim_gallery (originally 20211019215122) | ||
|
||
class AddGalleryIdToDecidimStaticPages < ActiveRecord::Migration[5.2] | ||
def change | ||
add_column :decidim_static_pages, :gallery_id, :integer, default: 0 | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters