mirror of
https://github.com/docusealco/docuseal.git
synced 2026-06-23 04:10:11 +00:00
fix migration for mysql
This commit is contained in:
@@ -6,7 +6,7 @@ class AddUuidToUsers < ActiveRecord::Migration[7.0]
|
||||
end
|
||||
|
||||
def up
|
||||
add_column :users, :uuid, :text
|
||||
add_column :users, :uuid, :string
|
||||
add_index :users, :uuid, unique: true
|
||||
|
||||
MigrationUser.all.each do |user|
|
||||
|
||||
@@ -6,7 +6,7 @@ class AddSourceToSubmissions < ActiveRecord::Migration[7.0]
|
||||
end
|
||||
|
||||
def up
|
||||
add_column :submissions, :source, :text
|
||||
add_column :submissions, :source, :string
|
||||
|
||||
MigrationSubmission.where(source: nil).update_all(source: :invite)
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ class CreateAccessTokens < ActiveRecord::Migration[7.0]
|
||||
create_table :access_tokens do |t|
|
||||
t.references :user, null: false, foreign_key: true, index: true
|
||||
t.text :token, null: false
|
||||
t.text :sha256, null: false, index: { unique: true }
|
||||
t.string :sha256, null: false, index: { unique: true }
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user