Skip to content

Commit

Permalink
Fix database reset after address deprecation (#6216)
Browse files Browse the repository at this point in the history
Fix a small bug introduced in
#6087 preventing database reset
  • Loading branch information
FelixMalfait authored Jul 11, 2024
1 parent 45fe537 commit 70f4624
Showing 1 changed file with 84 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ export const seedCompanies = async (
'id',
'name',
'domainName',
'address',
'addressAddressStreet1',
'addressAddressStreet2',
'addressAddressCity',
'addressAddressState',
'addressAddressPostcode',
'addressAddressCountry',
'position',
])
.orIgnore()
Expand All @@ -38,91 +43,156 @@ export const seedCompanies = async (
id: DEV_SEED_COMPANY_IDS.LINKEDIN,
name: 'Linkedin',
domainName: 'linkedin.com',
address: '',
addressAddressStreet1: 'Eutaw Street',
addressAddressStreet2: null,
addressAddressCity: 'Dublin',
addressAddressState: null,
addressAddressPostcode: null,
addressAddressCountry: 'Ireland',
position: 1,
},
{
id: DEV_SEED_COMPANY_IDS.FACEBOOK,
name: 'Facebook',
domainName: 'facebook.com',
address: '',
addressAddressStreet1: null,
addressAddressStreet2: null,
addressAddressCity: null,
addressAddressState: null,
addressAddressPostcode: null,
addressAddressCountry: null,
position: 2,
},
{
id: DEV_SEED_COMPANY_IDS.QONTO,
name: 'Qonto',
domainName: 'qonto.com',
address: '',
addressAddressStreet1: '18 rue de navarrin',
addressAddressStreet2: null,
addressAddressCity: 'Paris',
addressAddressState: null,
addressAddressPostcode: '75009',
addressAddressCountry: 'France',
position: 3,
},
{
id: DEV_SEED_COMPANY_IDS.MICROSOFT,
name: 'Microsoft',
domainName: 'microsoft.com',
address: '',
addressAddressStreet1: null,
addressAddressStreet2: null,
addressAddressCity: null,
addressAddressState: null,
addressAddressPostcode: null,
addressAddressCountry: null,
position: 4,
},
{
id: DEV_SEED_COMPANY_IDS.AIRBNB,
name: 'Airbnb',
domainName: 'airbnb.com',
address: '',
addressAddressStreet1: '888 Brannan St',
addressAddressStreet2: null,
addressAddressCity: 'San Francisco',
addressAddressState: 'CA',
addressAddressPostcode: '94103',
addressAddressCountry: 'United States',
position: 5,
},
{
id: DEV_SEED_COMPANY_IDS.GOOGLE,
name: 'Google',
domainName: 'google.com',
address: '',
addressAddressStreet1: '760 Market St',
addressAddressStreet2: 'Floor 10',
addressAddressCity: 'San Francisco',
addressAddressState: null,
addressAddressPostcode: '94102',
addressAddressCountry: 'United States',
position: 6,
},
{
id: DEV_SEED_COMPANY_IDS.NETFLIX,
name: 'Netflix',
domainName: 'netflix.com',
address: '',
addressAddressStreet1: '2300 Harrison St',
addressAddressStreet2: null,
addressAddressCity: 'San Francisco',
addressAddressState: 'CA',
addressAddressPostcode: '94110',
addressAddressCountry: 'United States',
position: 7,
},
{
id: DEV_SEED_COMPANY_IDS.LIBEO,
name: 'Libeo',
domainName: 'libeo.io',
address: '',
addressAddressStreet1: null,
addressAddressStreet2: null,
addressAddressCity: null,
addressAddressState: null,
addressAddressPostcode: null,
addressAddressCountry: null,
position: 8,
},
{
id: DEV_SEED_COMPANY_IDS.CLAAP,
name: 'Claap',
domainName: 'claap.io',
address: '',
addressAddressStreet1: null,
addressAddressStreet2: null,
addressAddressCity: null,
addressAddressState: null,
addressAddressPostcode: null,
addressAddressCountry: null,
position: 9,
},
{
id: DEV_SEED_COMPANY_IDS.HASURA,
name: 'Hasura',
domainName: 'hasura.io',
address: '',
addressAddressStreet1: null,
addressAddressStreet2: null,
addressAddressCity: null,
addressAddressState: null,
addressAddressPostcode: null,
addressAddressCountry: null,
position: 10,
},
{
id: DEV_SEED_COMPANY_IDS.WEWORK,
name: 'Wework',
domainName: 'wework.com',
address: '',
addressAddressStreet1: null,
addressAddressStreet2: null,
addressAddressCity: null,
addressAddressState: null,
addressAddressPostcode: null,
addressAddressCountry: null,
position: 11,
},
{
id: DEV_SEED_COMPANY_IDS.SAMSUNG,
name: 'Samsung',
domainName: 'samsung.com',
address: '',
addressAddressStreet1: null,
addressAddressStreet2: null,
addressAddressCity: null,
addressAddressState: null,
addressAddressPostcode: null,
addressAddressCountry: null,
position: 12,
},
{
id: DEV_SEED_COMPANY_IDS.ALGOLIA,
name: 'Algolia',
domainName: 'algolia.com',
address: '',
addressAddressStreet1: null,
addressAddressStreet2: null,
addressAddressCity: null,
addressAddressState: null,
addressAddressPostcode: null,
addressAddressCountry: null,
position: 13,
},
])
Expand Down

0 comments on commit 70f4624

Please sign in to comment.