-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin' into feature/githubs
- Loading branch information
Showing
8 changed files
with
202 additions
and
9 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
25 changes: 25 additions & 0 deletions
25
potato_project/potato_types/migrations/0002_add_initial_data.py
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,25 @@ | ||
from django.db import migrations | ||
|
||
def insert_initial_data(apps, schema_editor): | ||
PotatoType = apps.get_model('potato_types', 'PotatoType') | ||
PotatoType.objects.create(potato_name="levelOnePotato", potato_description="Can be obtained after level 1.") | ||
PotatoType.objects.create(potato_name="levelTwoPotato", potato_description="Can be obtained after level 2.") | ||
PotatoType.objects.create(potato_name="levelThreePotato", potato_description="Can be obtained after level 3.") | ||
PotatoType.objects.create(potato_name="levelFourPotato", potato_description="Can be obtained after level 4.") | ||
PotatoType.objects.create(potato_name="levelFivePotato", potato_description="Can be obtained after level 5.") | ||
PotatoType.objects.create(potato_name="winterPotato", potato_description="Can be obtained by committing on Christmas Day.") | ||
PotatoType.objects.create(potato_name="ghostPotato", potato_description="Can be obtained by committing on Halloween.") | ||
PotatoType.objects.create(potato_name="crystalPotato", potato_description="Can be obtained by committing consecutively for a month.") | ||
PotatoType.objects.create(potato_name="dirtyPotato", potato_description="Can be obtained if there are no commits for a month.") | ||
PotatoType.objects.create(potato_name="greenPotato", potato_description="Can be obtained if there are no commits for 3 months.") | ||
PotatoType.objects.create(potato_name="shPotato", potato_description="?") | ||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("potato_types", "0001_initial"), # "0001_initial"은 모델 생성 마이그레이션의 이름입니다. | ||
] | ||
|
||
operations = [ | ||
migrations.RunPython(insert_initial_data), | ||
] |
File renamed without changes.
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
60 changes: 60 additions & 0 deletions
60
potato_project/stacks/migrations/0002_add_initial_stacks.py
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,60 @@ | ||
from django.db import migrations | ||
|
||
def add_initial_stacks(apps, schema_editor): | ||
Stack = apps.get_model('stacks', 'Stack') | ||
stacks = [ | ||
# 프로그래밍 언어 | ||
"Python", "Java", "JavaScript", "TypeScript", "C++", "C#", "Ruby", "Go", "Rust", "Swift", | ||
"Kotlin", "PHP", "Scala", "R", "Dart", "Lua", "Haskell", "Erlang", "Clojure", "F#", | ||
|
||
# 백엔드 프레임워크 | ||
"Django", "Flask", "FastAPI", "Spring Boot", "Express.js", "Ruby on Rails", "ASP.NET Core", | ||
"Laravel", "Symfony", "Phoenix", "Gin", "Echo", "Ktor", "Micronaut", "Quarkus", "NestJS", | ||
"Strapi", "Koa.js", "Fastify", "Sails.js", | ||
|
||
# 프론트엔드 프레임워크/라이브러리 | ||
"React", "Vue.js", "Angular", "Svelte", "Ember.js", "Backbone.js", "jQuery", "Preact", | ||
"Solid.js", "Alpine.js", "Lit", "Stimulus", "Meteor", "Next.js", "Nuxt.js", "Gatsby", | ||
"Gridsome", "Eleventy", "Astro", "Remix", | ||
|
||
# 모바일 개발 | ||
"React Native", "Flutter", "Xamarin", "Ionic", "PhoneGap", "Cordova", "NativeScript", | ||
"Kivy", "SwiftUI", "Jetpack Compose", "Unity", | ||
|
||
# 데이터베이스 | ||
"PostgreSQL", "MySQL", "MongoDB", "SQLite", "Redis", "Cassandra", "Couchbase", "Oracle", | ||
"Microsoft SQL Server", "MariaDB", "Elasticsearch", "Neo4j", "InfluxDB", "DynamoDB", | ||
"Firestore", "Realm", "CockroachDB", "TimescaleDB", "RethinkDB", "ArangoDB", | ||
|
||
# 클라우드 플랫폼 | ||
"AWS", "Google Cloud Platform", "Microsoft Azure", "Heroku", "DigitalOcean", "Linode", | ||
"Vultr", "IBM Cloud", "Oracle Cloud", "Alibaba Cloud", | ||
|
||
# DevOps 및 인프라 | ||
"Docker", "Kubernetes", "Jenkins", "GitLab CI/CD", "Travis CI", "CircleCI", "Ansible", | ||
"Terraform", "Puppet", "Chef", "Vagrant", "Prometheus", "Grafana", "ELK Stack", "Nagios", "Zabbix", | ||
|
||
# 버전 관리 | ||
"Git", "Mercurial", "SVN", | ||
|
||
# API 및 통신 | ||
"REST API", "GraphQL", "gRPC", "WebSocket", "RabbitMQ", "Apache Kafka", "MQTT", "ZeroMQ", | ||
|
||
# 프론트엔드 도구 | ||
"Webpack", "Babel", "Sass", "Less", "PostCSS", "Gulp", "Grunt", "Parcel", "Rollup", "Vite", | ||
|
||
# 테스팅 | ||
"Jest", "Mocha", "Jasmine", "Selenium", "Cypress", "Puppeteer", "JUnit", "TestNG", "PyTest", "RSpec" | ||
] | ||
for stack in stacks: | ||
Stack.objects.create(name=stack) | ||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('stacks', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.RunPython(add_initial_stacks), | ||
] |
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