Logo
Explore Help
Sign In
jamey/berrypod
1
0
Fork 0
You've already forked berrypod
Code Issues Pull Requests Actions Packages Projects 1 Releases Wiki Activity
Files
544c83ad0fe218abd5b33c554abb0c2c41ca6513
berrypod/priv/repo/migrations/20251230213057_create_settings.exs

17 lines
425 B
Elixir
Raw Normal View History

rename project from SimpleshopTheme to Berrypod All modules, configs, paths, and references updated. 836 tests pass, zero warnings. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-18 21:23:15 +00:00
defmodule Berrypod.Repo.Migrations.CreateSettings do
feat: add Settings and Media contexts with theme settings schema - Create settings table for site-wide key-value configuration - Create images table for BLOB storage of logo/header images - Add Setting schema with JSON/string/integer/boolean support - Add ThemeSettings embedded schema with all theme options - Add Settings context with get/put/update operations - Add Media context for image uploads and retrieval - Add Image schema with SVG detection and storage - Add 9 curated theme presets (gallery, studio, boutique, etc.) - Add comprehensive tests for Settings and Media contexts - Add seeds with default Studio preset - All tests passing (29 tests, 0 failures)
2025-12-30 21:35:52 +00:00
use Ecto.Migration
def change do
create table(:settings, primary_key: false) do
add :id, :binary_id, primary_key: true
add :key, :string, null: false
add :value, :text, null: false
add :value_type, :string, null: false, default: "string"
timestamps(type: :utc_datetime)
end
create unique_index(:settings, [:key])
end
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.5 Page: 70ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API