"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "db/migrate/20161101131409_create_doorkeeper_tables.rb" between
zammad-3.5.1.tar.bz2 and zammad-4.0.0.tar.bz2

About: Zammad is a web based open source helpdesk/customer support system (requires an RDSMS, Ruby and a reverse proxy).

20161101131409_create_doorkeeper_tables.rb  (zammad-3.5.1.tar.bz2):20161101131409_create_doorkeeper_tables.rb  (zammad-4.0.0.tar.bz2)
class CreateDoorkeeperTables < ActiveRecord::Migration[4.2] class CreateDoorkeeperTables < ActiveRecord::Migration[4.2]
def change def change
create_table :oauth_applications do |t| create_table :oauth_applications do |t|
t.string :name, null: false t.string :name, null: false
t.string :uid, null: false t.string :uid, null: false
t.string :secret, null: false t.string :secret, null: false
t.text :redirect_uri, null: false t.text :redirect_uri, null: false
t.string :scopes, null: false, default: '' t.string :scopes, null: false, default: ''
t.timestamps null: false t.timestamps null: false # rubocop:disable Zammad/ExistsDateTi mePrecision
end end
add_index :oauth_applications, :uid, unique: true add_index :oauth_applications, :uid, unique: true
create_table :oauth_access_grants do |t| create_table :oauth_access_grants do |t|
t.integer :resource_owner_id, null: false t.integer :resource_owner_id, null: false
t.references :application, null: false t.references :application, null: false
t.string :token, null: false t.string :token, null: false
t.integer :expires_in, null: false t.integer :expires_in, null: false
t.text :redirect_uri, null: false t.text :redirect_uri, null: false
t.datetime :created_at, null: false t.datetime :created_at, null: false # rubocop:disable Zammad/Exists
t.datetime :revoked_at DateTimePrecision
t.datetime :revoked_at # rubocop:disable Zammad/ExistsDateTimePrecision
t.string :scopes t.string :scopes
end end
add_index :oauth_access_grants, :token, unique: true add_index :oauth_access_grants, :token, unique: true
add_foreign_key( add_foreign_key(
:oauth_access_grants, :oauth_access_grants,
:oauth_applications, :oauth_applications,
column: :application_id column: :application_id
) )
skipping to change at line 46 skipping to change at line 46
# If you use a custom token generator you may need to change this column # If you use a custom token generator you may need to change this column
# from string to text, so that it accepts tokens larger than 255 # from string to text, so that it accepts tokens larger than 255
# characters. More info on custom token generators in: # characters. More info on custom token generators in:
# https://github.com/doorkeeper-gem/doorkeeper/tree/v3.0.0.rc1#custom-acce ss-token-generator # https://github.com/doorkeeper-gem/doorkeeper/tree/v3.0.0.rc1#custom-acce ss-token-generator
# #
# t.text :token, null: false # t.text :token, null: false
t.string :token, null: false t.string :token, null: false
t.string :refresh_token t.string :refresh_token
t.integer :expires_in t.integer :expires_in
t.datetime :revoked_at t.datetime :revoked_at # rubocop:disable Zammad/ExistsDateTimePrecision
t.datetime :created_at, null: false t.datetime :created_at, null: false # rubocop:disable Zammad/ExistsDateTim
ePrecision
t.string :scopes t.string :scopes
# If there is a previous_refresh_token column, # If there is a previous_refresh_token column,
# refresh tokens will be revoked after a related access token is used. # refresh tokens will be revoked after a related access token is used.
# If there is no previous_refresh_token column, # If there is no previous_refresh_token column,
# previous tokens are revoked as soon as a new access token is created. # previous tokens are revoked as soon as a new access token is created.
# Comment out this line if you'd rather have refresh tokens # Comment out this line if you'd rather have refresh tokens
# instantly revoked. # instantly revoked.
t.string :previous_refresh_token, null: false, default: '' t.string :previous_refresh_token, null: false, default: ''
end end
 End of changes. 3 change blocks. 
5 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)